future_or 0.1.1 future_or: ^0.1.1 copied to clipboard
A collection of widgets, methods and extention methods that make working with FutureOr objects easier.
A collection of widgets, methods and extension methods that make working with FutureOr objects easier
Extension methods #
isFuture: true if future
isNotFuture: true if value
value: casts to a value
future: casts to a future
asFuture: if not a future, returns Future.value of the value
if the futureOr is a value, calls the builder with the value.
if the futureOr is a future, return a