sword_result 0.1.0 copy "sword_result: ^0.1.0" to clipboard
sword_result: ^0.1.0 copied to clipboard

Result type and helpers for SwordStack.

SwordResult #

Result type and helpers for error handling in Dart and Flutter.

Usage #

import 'package:sword_result/sword_result.dart';

final Result<int, String> value = Result.ok(42);
final Result<int, String> parsed = Result.tryCatch(
  () => int.parse('123'),
  (error, stackTrace) => 'parse_failed',
);
1
likes
140
points
82
downloads

Publisher

unverified uploader

Weekly Downloads

Result type and helpers for SwordStack.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on sword_result