dx library
Support for doing something awesome.
More dartdocs go here.
Extensions
Functions
-
asBool(
dynamic value) → bool? -
asDouble(
dynamic value) → double? -
asInt(
dynamic value) → int? -
asString(
dynamic value) → String? -
asType<
T> (dynamic value) → T? -
getValueSafely<
T> (T? getValueAction()) → Either< Object, T?> - run getValueAction with try-catch return the result of getValueAction if no exception occurs, otherwise return null instead.