mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-10-30 09:24:02 +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;
|
||
|
|
}
|