eitherx 1.0.3 copy "eitherx: ^1.0.3" to clipboard
eitherx: ^1.0.3 copied to clipboard

Either provides a way to handle errors and exceptions in a more expressive and concise way

example/lib/main.dart

import 'package:eitherx/eitherx.dart';

void main() {
  final myEither = right<String, int>(45);

  final String result = myEither.fold(
    (error) => 'Error: $error',
    (value) => 'Value: $value',
  );

  print(result); // Output: Value: 45
}
2
likes
0
pub points
72%
popularity

Publisher

unverified uploader

Either provides a way to handle errors and exceptions in a more expressive and concise way

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta

More

Packages that depend on eitherx