olive 0.0.6
olive: ^0.0.6 copied to clipboard
Olive is a set of extension methods to make the cross-platform easier, cleaner, and more expressive.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add olive
With Flutter:
$ flutter pub add olive
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
olive: ^0.0.6
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:olive/extensions.dart';
import 'package:olive/extensions/double_constraint_extensions.dart';
import 'package:olive/extensions/double_conversion_extensions.dart';
import 'package:olive/extensions/int_constraint_extensions.dart';
import 'package:olive/extensions/int_conversion_extensions.dart';
import 'package:olive/extensions/iterable_filtering_extensions.dart';
import 'package:olive/extensions/iterable_projection_extensions.dart';
import 'package:olive/extensions/list_filtering_extensions.dart';
import 'package:olive/extensions/stream_filtering_extensions.dart';
import 'package:olive/extensions/string_conversion_extensions.dart';
import 'package:olive/extensions/string_logical_extensions.dart';
import 'package:olive/type_defs.dart';