ColorBackgroundDrawable class Null safety

Drawable to use a color as a background.

Inheritance
Annotations

Constructors

ColorBackgroundDrawable({required Color color})
Creates a ColorBackgroundDrawable to use a color as a background.
const

Properties

color Color
The color to be used as a background.
final
hashCode int
The hash code for this object.
read-onlyinherited
hidden bool
Whether the drawable is hidden or not.
finalinherited
isHidden bool
read-onlyinherited
isNotHidden bool
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

draw(Canvas canvas, Size size) → void
Draws the background on the provided canvas of size size.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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