SuraUtils class

Constructors

SuraUtils()

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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

checkConnection() Future<bool>
A Function to check network connection
degreeToRadian(double degree) double
Convert degree to radian because most of Flutter's Widget depends on Radian
getBytesFromAsset(String path, {int? width}) Future<Uint8List>
get bytes from asset that mostly use for google map marker
picsumImage([int width = 200, int height = 200]) String
Get a random image from Picsum with given dimension
unsplashImage({int width = 200, int height = 200, String category = "photo"}) String
Get a random Image from Unsplash with dimension and category filter
wait([int millisecond = 1500]) Future<void>
Short for Future.delayed