flutter_readable library Null safety

Extensions

RBool
RContext
RContextColors
RContextLocalization
  • Localization shortcuts
  • RContextMediaQuery
  • MediaQuery shortcuts
  • RContextNavigator
    RContextTextTheme
    RContextTheme
    RDateTime
    RDateTimeF
    RIterable
    RIterable
    RIterableNull
  • RIterableString
    RLocale
    extensions on the locale
    RLocaleIsChecker
    RMap
    RNumList
    list readableX
    RString
    RStringConvert
    convert string to different types
    RTimeOfDay

    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)); do await 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));