helpers/functions
library
Functions
-
alwaysFalse<T>(T input)
→ bool
-
-
alwaysTrue<T>(T input)
→ bool
-
-
assertNotNull<T>(T value)
→ T
-
-
catching<I, O>(O execute(I input), {String? debugLabel, Logger? logger})
→ Mapping<I, O?>
-
-
create<T>(Factory<T>? factory)
→ T?
-
-
delay([Duration duration = const Duration(milliseconds: 300)])
→ Future
-
-
illegalArg<T>(String prop, [String? message])
→ T
-
-
illegalState<T>([String? message])
→ T
-
-
notImplemented<T>()
→ T
-
-
nullPointer<T>(String? property)
→ T
-
-
returnNull<T>()
→ Factory<T?>
-
-
timed<R>(R block(), {dynamic result(R result, Duration time)?})
→ R
-
-
timedAsync<R>(FutureOr<R> block(), {dynamic result(R result, Duration time)?})
→ Future<R>
-
-
todo<T>([String? message])
→ T
-
-
trying<O>(O execute(), {Logger? log})
→ O
-
Typedefs
-
Func<R>
= R Function()
-