mather 1.0.3 copy "mather: ^1.0.3" to clipboard
mather: ^1.0.3 copied to clipboard

library extention for language dart an base type (List)

example/mather_example.dart

import 'package:mather/mather.dart';

void main() {
  List list = [10, 1, 3, 3, 1, "e"];
  // 1. replace index 1 to index 2 ["e", 1, 3, 3, 1, 10] method return void
  list.replace(list.indexOf(list.first), list.indexOf(list.last));
  print(list);

  // count // col 2
  print(list.count(1));

  // Common sum Warning data should be type int
  List sum = [1, 2, 7];
  print(sum.sum()); // 10
}
0
likes
150
points
223
downloads

Publisher

unverified uploader

Weekly Downloads

library extention for language dart an base type (List)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on mather