olive 0.0.5 olive: ^0.0.5 copied to clipboard
Olive contains a set of extension methods and utilities written purely on top of the dart to make the cross-platform software development easier, cleaner, and more expressive. It is going to be a port [...]
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.5
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';