ComicStateDecoration class

A face's decoration, moving from one state's to the next with ComicStateLerp: what a part draws its fill, rim and print with in place of a DecoratedBox, or, with ComicStateDecoration.box, of a Container that decorates.

ComicStateDecoration(decoration: ShapeDecoration(color: fill, shape: shape), child: label)
Inheritance

Constructors

ComicStateDecoration({Key? key, required Decoration decoration, DecorationPosition position = DecorationPosition.background, Widget? child})
Creates a ComicStateDecoration.
const
ComicStateDecoration.box({Key? key, required Decoration decoration, EdgeInsetsGeometry? padding, BoxConstraints? constraints, double? width, double? height, Widget? child})
Creates one that lays out as a Container does: padding round the child with the decoration's own padding added (a rim's width), inside constraints, width and height.
const

Properties

child → Widget?
The face's content.
final
constraints → BoxConstraints?
Constraints round the decorated box, as a Container's.
final
decoration → Decoration
The decoration the face's states resolve to now.
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
A fixed height, as a Container's.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
padding → EdgeInsetsGeometry?
Room inside the decoration round the child, as a Container's (ComicStateDecoration.box).
final
position → DecorationPosition
Whether the decoration is painted behind the child or in front of it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → double?
A fixed width, as a Container's.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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