GoogleCastImage class

Represents an image for Google Cast.

Constructors

GoogleCastImage({required Uri url, int? height, int? width})
Creates a new GoogleCastImage instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
height int?
height integer optional Height of the image
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Uri
url URI URI for the image
final
width int?
width integer optional Width of the image
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Converts this image to a JSON string.
toMap() Map<String, dynamic>
Converts this image to a map representation.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(String source) GoogleCastImage?
Creates a GoogleCastImage from a JSON string.
fromMap(Map<String, dynamic> map) GoogleCastImage?
Creates a GoogleCastImage from a map representation. Returns null if the URL is missing or invalid.