ImageResourcePrototype class
This is part of an implementation of the ImageBundle optimization implemented with ClientBundle.
class ImageResourcePrototype implements ImageResource { final bool animated; final bool lossy; final String name; final SafeUri url; final int left; final int top; final int width; final int height; /** * Only called by generated code. */ ImageResourcePrototype(this.name, this.url, this.left, this.top, this.width, this.height, this.animated, this.lossy); }
Implements
Constructors
Properties
final bool animated #
Return <code>true</code> if the image contains multiple frames.
docs inherited from ImageResource
final bool animated
final int height #
Returns the height of the image.
docs inherited from ImageResource
final int height
final int left #
Returns the horizontal position of the image within the composite image.
docs inherited from ImageResource
final int left
final bool lossy #
final bool lossy
final String name #
Returns the name of the function within the ClientBundle used to create the ResourcePrototype.
@return the name of the function within the ClientBundle used to create the
ResourcePrototype
docs inherited from ResourcePrototype
final String name
final int top #
Returns the vertical position of the image within the composite image.
docs inherited from ImageResource
final int top
final SafeUri url #
Returns the URL for the composite image that contains the ImageResource.
docs inherited from ImageResource
final SafeUri url
final int width #
Returns the width of the image.
docs inherited from ImageResource
final int width