contains_value_and_time 1.0.1
contains_value_and_time: ^1.0.1 copied to clipboard
A Dart package that provides a function to check if a list contains a specified value and returns the index of the value along with the time taken to find it.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add contains_value_and_timeWith Flutter:
$ flutter pub add contains_value_and_timeThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
contains_value_and_time: ^1.0.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:contains_value_and_time/contains_value_and_time.dart';