diff --git a/lib/lists.dart b/lib/lists.dart deleted file mode 100644 index 42cd83d..0000000 --- a/lib/lists.dart +++ /dev/null @@ -1,16 +0,0 @@ -/// A wrapper around List.firstWhere that does not throw but instead just -/// returns true if [test] returns true for an element or false if [test] never -/// returned true. -bool listContains(List list, bool Function(T element) test) { - return firstWhereOrNull(list, test) != null; -} - -/// A wrapper around [List.firstWhere] that does not throw but instead just -/// return null if [test] never returned true -T? firstWhereOrNull(List list, bool Function(T element) test) { - try { - return list.firstWhere(test); - } catch(e) { - return null; - } -} diff --git a/lib/moxlib.dart b/lib/moxlib.dart index 48fa1d2..97206dd 100644 --- a/lib/moxlib.dart +++ b/lib/moxlib.dart @@ -1,5 +1,4 @@ library moxlib; export 'awaitabledatasender.dart'; -export 'lists.dart'; export 'math.dart';