es6_math 1.2.1
es6_math: ^1.2.1 copied to clipboard
Provides math functions from ES6 (ECMAScript 2015) that are currently missing in dart:math.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add es6_mathWith Flutter:
$ flutter pub add es6_mathThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
es6_math: ^1.2.1Alternatively, 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:es6_math/es6_math.dart';