do_what_now 1.0.0
do_what_now: ^1.0.0 copied to clipboard
Result package for Dart and Flutter designed around fluent APIs and a functional approach to error handling, because things go wrong!.
example/do_what_now_example.dart
import 'package:do_what_now/do_what_now.dart';
void main() {
// Don't forget to define the generic Type to avoid usage of dynamic
final doWhat = create<String>('value');
if(doWhat.isSuccess){
// this is now true as the 'value' string was a valid String
}
}