safe_converter 1.1.0
safe_converter: ^1.1.0 copied to clipboard
A high-performance utility for safely converting dynamic values to specific types (int, double, bool, DateTime, etc.) without runtime exceptions.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add safe_converterWith Flutter:
$ flutter pub add safe_converterThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
safe_converter: ^1.1.0Alternatively, 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:safe_converter/safe_converter.dart';