safe_cast 1.0.2 copy "safe_cast: ^1.0.2" to clipboard
safe_cast: ^1.0.2 copied to clipboard

Dart library to provides safe way to cast objects or dynamics

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add safe_cast

With Flutter:

 $ flutter pub add safe_cast

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  safe_cast: ^1.0.2

Alternatively, 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_cast/safe_cast.dart';
0
likes
160
points
5
downloads

Publisher

verified publisherdig.dev.br

Weekly Downloads

Dart library to provides safe way to cast objects or dynamics

Repository (GitHub)
View/report issues

Topics

#null-safety #types #type-safe #type-safety

Documentation

API reference

License

MIT (license)

More

Packages that depend on safe_cast