mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-25 01:50:56 +00:00
7 lines
158 B
Dart
7 lines
158 B
Dart
![]() |
import 'package:dartz/dartz.dart';
|
||
|
|
||
|
extension EitherX<L, R> on Either<L, R> {
|
||
|
R asRight() => (this as Right).value;
|
||
|
L asLeft() => (this as Left).value;
|
||
|
}
|