record_result 1.0.0+1
record_result: ^1.0.0+1 copied to clipboard
record_result is a Dart package that provides a type called Result for handling the outcomes of operations. It can represent either a successful result or a failure, allowing you to handle errors in a [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add record_resultWith Flutter:
$ flutter pub add record_resultThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
record_result: ^1.0.0+1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:record_result/record_result.dart';