RandomImage class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
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
dummyImage ({String ? text , Size size = const Size(300, 300) , ImageType imageType = ImageType.png , Color bgColor = Colors.grey , Color fgColor = Colors.black })
→ String
Generates a random image URL from dummyimage with the specified dimensions .
The width
and height
parameters specify the dimensions of the image.
Returns a string representing the URL of the random image.
picsumImage ([int width = 200 , int height = 200 ])
→ String
Get a random image from Picsum with the specified dimensions.
randomImage ({String slug = 'my' , Size size = const Size(300, 300) , ImageSet set = ImageSet.any , ImageBg bg = ImageBg.any , ImageType imageType = ImageType.png , String category = 'photo' , ImageColor ? color })
→ String
Generates a random image URL from robohash with the specified dimensions and category filter.
flutter_helper_kit 0.0.19