lerp 0.0.2 copy "lerp: ^0.0.2" to clipboard
lerp: ^0.0.2 copied to clipboard

Linearly interpolate between two numbers, boolean, or enum by an extrapolation factor.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add lerp

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

dependencies:
  lerp: ^0.0.2

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:lerp/lerp.dart';
0
likes
160
pub points
6%
popularity

Publisher

verified publisherwidgetarian.com

Linearly interpolate between two numbers, boolean, or enum by an extrapolation factor.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on lerp