nui_core
library
Functions
-
appConfig()
→ NUIAppConfig
-
-
asDateTime(dynamic value, {String? format})
→ DateTime?
-
-
asList<T>(dynamic value)
→ List<T>?
-
-
asListOfObjects<E>(NUIEntMapper<E> entity, dynamic value)
→ List<E>
-
-
asMap(dynamic value)
→ Map<String, dynamic>
-
-
asMapOfObject<T>(NUIEntMapper<T> entity, dynamic value)
→ Map<String, T>
-
-
asMapOfType<T>(dynamic value)
→ Map<String, T>
-
-
asObject<D>(NUIEntMapper<D> entity, dynamic value)
→ D?
-
-
buildTypeValueOf(String value)
→ BuildType
-
-
colorFromHexString(String hexValue)
→ Color
-
-
configField<T>(String key)
→ T
-
-
contains(String? value1, String? value2)
→ bool
-
-
dateToString(DateTime date, {String format = NUIDTUtil.FORMAT_yyyy_MM_dd_HH_mm_ss})
→ String?
-
-
endOfDay()
→ DateTime
-
-
formatNumber(dynamic number, {bool showComma = true, int decimals = 2, bool fixedDecimal = true})
→ String?
-
-
formatTime(BuildContext context, TimeOfDay timeOfDay, {bool use24HourFormat = true})
→ String
-
-
getIfAvailable<T>(List<T?> items, int position)
→ T?
-
-
getNUIApp()
→ NUIApp
-
-
getString(String key, {List? params})
→ String?
-
-
gradientOrientationFromValue(String value)
→ GradientOrientation
-
-
isNullOrEmpty(Object? any)
→ bool
-
-
loadImage(String imageUrl, {BoxFit fit = BoxFit.cover, double? width, double? height, Widget? placeHolder, Widget? errorWidget})
→ Widget
-
-
loadImageLocal(String path, double width, double height, {BoxFit fit = BoxFit.cover, Uint8List? thumbdata})
→ Widget
-
-
loadImageProvider(String imageUrl)
→ ImageProvider<Object>
-
-
loadSvg(String filename, {double? width, double? height, Color? color, String? package, BoxFit fit = BoxFit.scaleDown})
→ Widget
-
-
logNUI(String module, String content)
→ void
-
-
loop<T>(List<T> items, LooperCallback<T> callback)
→ dynamic
-
-
match(String? value1, String? value2)
→ bool
-
-
matchSearch({required String keyword, required List<String> criterias})
→ int
-
-
maybePop(BuildContext context)
→ void
-
-
pop(BuildContext context)
→ void
-
-
popAllAndPush(BuildContext context, Widget page, {PageTransition? transition, Duration? duration})
→ void
-
-
popAndPush(BuildContext context, Widget page, {PageTransition? transition, Duration? duration})
→ void
-
-
popWithResult<T>(BuildContext context, T data)
→ void
-
-
push(BuildContext context, Widget page, {PageTransition? transition, Duration? duration})
→ void
-
-
pushForResult<T>(BuildContext context, Widget page, {PageTransition? transition, Duration? duration})
→ Future<T?>
-
-
pushFull(BuildContext context, Widget page, {PageTransition? transition, Duration? duration})
→ void
-
-
randomUUID()
→ String
-
-
runAfter(Duration duration, {required Function action})
→ void
-
-
runNUIApp(NUIApp app, {NUIAppCrashHandler? crashHandler})
→ void
-
-
screenHeight(BuildContext context)
→ double
-
-
screenWidth(BuildContext context)
→ double
-
-
snack({required BuildContext context, required Widget content, SnackBarAction? action, Duration? duration, Color? backgroundColor, double elevation = 0})
→ void
-
-
snackByItem({required BuildContext context, required NUISnackItem item})
→ void
-
-
startOfDay()
→ DateTime
-
-
stringToDate(String dateString, {String? dateFormat})
→ DateTime?
-
-
throwNUI(String module, String description)
→ void
-
-
valueOfEntType(String value)
→ NUIEntType
-