BaseUtils class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
checkConnection()
→ Future<bool>
-
checkConnection Check connection internet
-
checkValidateEmail(BuildContext context, String input)
→ bool
-
checkValidateEmail Check validate email address
-
copy(BuildContext context, {required String content, required Color? bgColor, required String text})
→ void
-
copy Copy text to clipboard and show toast
-
getScreenHeight(BuildContext context)
→ double
-
getScreenHeight Get screen height (without status bar)
-
getScreenWidth(BuildContext context)
→ double
-
getScreenWidth Get screen width in pixel
-
hideKeyboard(BuildContext context)
→ void
-
hideKeyBoard
Hide keyboard when tap outside
-
onWidgetBuildDone(dynamic function, BuildContext context)
→ void
-
onWidgetBuildDone When widget build done callback function
-
reversedNumber({required int number})
→ int
-
reversedNumber Reversed number
-
showScaffoldMessenger(BuildContext context, {required String text, required TextStyle? textStyle, required Color? bgColor})
→ void
-
showScaffoldMessenger Show scaffold messenger with message
-
showToast(String? message, {Toast? toastLength, required Color? bgColor})
→ void
-
showToast Show toast message with
message
-
splitYoutubeId(String url, {bool trimWhitespaces = true})
→ String?
-
splitYoutubeId Split youtube id from url youtube