LeanContainer class
This class represents a container Widget.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- LeanContainer
- Implementers
Constructors
- LeanContainer({Key? key, Widget? child, double? width, double? height, bool noDeco = false, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Decoration? boxDecoration, BoxConstraints? constraints, AlignmentGeometry? alignment, Color? color})
-
Use this constructor if you want a LeanContainer with optional
boxDecoration
. IfboxDecoration
== null : SetsboxDecoration
todefaultBoxDecoration
.const - LeanContainer.noBoxStyle({Key? key, required Widget? child, double? width, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, BoxConstraints? constraints, AlignmentGeometry? alignment})
-
Use this constructor if you want a LeanContainer without a boxDecoration.
const
Properties
- alignment → AlignmentGeometry?
-
The Container.alignment of LeanContainer.
final
- boxDecoration → Decoration?
-
The
Container.boxDecoration
of LeanContainer.final - child → Widget?
-
no setter
- color → Color?
-
final
- constraints → BoxConstraints?
-
The Container.constraints of LeanContainer.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The
Container.height
of LeanContainer.final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsetsGeometry?
-
The Container.margin of LeanContainer.
final
- noDeco → bool
-
final
- padding → EdgeInsetsGeometry?
-
The Container.padding of LeanContainer.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double?
-
The
Container.width
of LeanContainer.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.
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
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → 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
Static Properties
- defaultColor ↔ Color
-
The default BoxDecoration.color of LeanContainer if BoxDecoration.color hasn't been initialized.
getter/setter pair
- defaultMargin ↔ EdgeInsetsGeometry
-
The default margin of LeanContainer if margin hasn't been initialized.
getter/setter pair
- defaultPadding ↔ EdgeInsetsGeometry
-
The default padding of LeanContainer if padding hasn't been initialized.
getter/setter pair
Constants
- defaultBorderRadius → const BorderRadius
- The default BoxDecoration.borderRadius of LeanContainer if BoxDecoration.borderRadius hasn't been initialized.