readable library
Extensions
Functions
-
eightSeconds(
) → Future< void> -
instead of
await Future.delayed(const Duration(seconds:8));
-
findInMap(
String path, Map< Object?, Object?> map, {String splitOperator = '.'}) → Object? - can dig deeper into the Map if the key is not nested return the value if the key is not nested go deep until find the value
-
fiveSeconds(
) → Future< void> -
instead of
await Future.delayed(const Duration(seconds:5));
-
flatMapKeys(
Map< String, Object?> map) → List<String> - takes a Map and return the flat keys to the map Example map :
-
forSeconds<
T> (int seconds) → Future< T> -
instead of
await Future.delayed(const Duration(seconds:1));
doawait forSeconds(x)
-
fourSeconds(
) → Future< void> -
instead of
await Future.delayed(const Duration(seconds:4));
-
mergeTwoMaps(
Map< String, Object?> ? a, Map<String, Object?> ? b) → Map<String, Object?> ? -
- merges to maps into single one
- if the key found in both maps it will use the one from the second map
-
nineSeconds(
) → Future< void> -
instead of
await Future.delayed(const Duration(seconds:9));
-
oneSecond(
) → Future< void> -
instead of
await Future.delayed(const Duration(seconds:1));
-
sevenSeconds(
) → Future< void> -
instead of
await Future.delayed(const Duration(seconds:7));
-
sixSeconds(
) → Future< void> -
instead of
await Future.delayed(const Duration(seconds:6));
-
tenSeconds(
) → Future< void> -
instead of
await Future.delayed(const Duration(seconds:10));
-
threeSeconds(
) → Future< void> -
instead of
await Future.delayed(const Duration(seconds:3));
-
twoSeconds(
) → Future< void> -
instead of
await Future.delayed(const Duration(seconds:2));