mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +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;
|
||
|
}
|