mather 1.0.3
mather: ^1.0.3 copied to clipboard
library extention for language dart an base type (List)
Features #
TODO: library extention for language dart an base type (List)
Getting started #
TODO: How starting work in package
import 'package:mather/mather.dart'
List -----------------------------------------------
Method: replace, count, sum
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
}
Usage #
TODO: see directory to /example folder.