RandomImage class

Constructors

RandomImage()

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

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.