BoxSpec class final

Inheritance
Mixed-in types
Annotations
  • @MixableSpec.new()

Constructors

BoxSpec({AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, BoxConstraints? constraints, Decoration? decoration, Decoration? foregroundDecoration, Matrix4? transform, AlignmentGeometry? transformAlignment, Clip? clipBehavior, double? width, double? height, WidgetModifiersConfig? modifiers, AnimatedData? animated})
const

Properties

alignment AlignmentGeometry?
Aligns the child within the box.
final
animated AnimatedData?
finalinherited
clipBehavior Clip?
Defines the clip behavior for the box when BoxConstraints has a negative minimum extent.
final
constraints BoxConstraints?
Applies additional constraints to the child.
final
decoration Decoration?
Paints a decoration behind the child.
final
foregroundDecoration Decoration?
Paints a decoration in front of the child.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Specifies the height of the box.
final
isAnimated bool
no setterinherited
margin EdgeInsetsGeometry?
Adds empty space around the box.
final
modifiers WidgetModifiersConfig?
finalinherited
padding EdgeInsetsGeometry?
Adds empty space inside the box.
final
props List<Object?>
The list of properties that constitute the state of this BoxSpec.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool
no setterinherited
transform Matrix4?
Applies a transformation matrix before painting the box.
final
transformAlignment AlignmentGeometry?
Aligns the origin of the coordinate system for the transform.
final
type Type
no setterinherited
width double?
Specifies the width of the box.
final

Methods

call({Widget? child, List<Type> orderOfModifiers = const []}) Widget
copyWith({AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, BoxConstraints? constraints, Decoration? decoration, Decoration? foregroundDecoration, Matrix4? transform, AlignmentGeometry? transformAlignment, Clip? clipBehavior, double? width, double? height, WidgetModifiersConfig? modifiers, AnimatedData? animated}) BoxSpec
Creates a copy of this BoxSpec but with the given fields replaced with the new values.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
getDiff(EqualityMixin other) Map<String, String>
inherited
lerp(covariant BoxSpec? other, double t) BoxSpec
Linearly interpolates between this BoxSpec and another BoxSpec based on the given parameter t.
inherited
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Constants

from → const BoxSpec Function(MixContext mix)
of → const BoxSpec Function(BuildContext context)