Spacing class

Inheritance
Available extensions

Constructors

Spacing.new({Key? key, double mainAxisExtent = defaultSpacing, double? crossAxisExtent, Color? color})
const
Spacing.expand({double mainAxisExtent = defaultSpacing, Key? key, Color? color})
const

Properties

color Color?
final
crossAxisExtent double?
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainAxisExtent double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

aligned([Alignment alignment = Alignment.center]) Widget

Available on Widget, provided by the WidgetEPExtension extension

bordered({bool top = true, bool bottom = true, bool left = true, bool right = true, Color color = Colors.black12, double radius = 4.0}) Widget

Available on Widget, provided by the WidgetEPExtension extension

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
centered() Widget

Available on Widget, provided by the WidgetEPExtension extension

constrained({double maxHeight = double.infinity, double maxWidth = double.infinity, double minHeight = 0.0, double minWidth = 0.0}) Widget

Available on Widget, provided by the WidgetEPExtension extension

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.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
padded([EdgeInsets padding = const EdgeInsets.all(kXSSize)]) Widget

Available on Widget, provided by the WidgetEPExtension extension

positioned({double? left, double? top, double? right, double? bottom}) Widget

Available on Widget, provided by the WidgetEPExtension extension

sized({double? height, double? width}) Widget

Available on Widget, provided by the WidgetEPExtension extension

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

Constants

defaultSpacing → const double