withers_extension 0.9.0 withers_extension: ^0.9.0 copied to clipboard
Uses class_extensions to generate withers. Withers are a convenient way of constructing copies of immutable objects with altered values.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add withers_extension
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
withers_extension: ^0.9.0
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:withers_extension/withers_extension.dart';