maybe_as 0.0.6 copy "maybe_as: ^0.0.6" to clipboard
maybe_as: ^0.0.6 copied to clipboard

Optional as. Returns null if type if not match the class type.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add maybe_as

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

dependencies:
  maybe_as: ^0.0.6

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:maybe_as/maybe_as.dart';
5
likes
140
pub points
28%
popularity

Publisher

verified publisherpub.iostech.org

Optional as. Returns null if type if not match the class type.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on maybe_as