StacLimitedBox class
A Stac model representing Flutter's LimitedBox
widget.
A box that limits its size only when it's unconstrained. If this widget's maximum width is unconstrained then it will try to be as wide as possible. If this widget's maximum height is unconstrained then it will try to be as tall as possible.
StacLimitedBox(
maxWidth: 100.0,
maxHeight: 150.0,
child: StacText(data: 'Limited content'),
)
{
"type": "limitedBox",
"maxWidth": 100.0,
"maxHeight": 150.0,
"child": {"type": "text", "data": "Limited content"}
}
- Inheritance
-
- Object
- StacElement
- StacWidget
- StacLimitedBox
- Annotations
-
- @JsonSerializable()
Constructors
- StacLimitedBox.new({double? maxWidth, double? maxHeight, StacWidget? child})
-
Creates a StacLimitedBox with the given properties.
const
-
StacLimitedBox.fromJson(Map<
String, dynamic> json) -
Creates a StacLimitedBox from JSON.
factory
Properties
- child → StacWidget?
-
The widget below this widget in the tree.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
jsonData
→ Map<
String, dynamic> ? -
Raw JSON data for this widget
finalinherited
- maxHeight → double?
-
The maximum height the child can be.
Defaults to double.infinity in the Flutter widget.
final
- maxWidth → double?
-
The maximum width the child can be.
Defaults to double.infinity in the Flutter widget.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Widget type identifier.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this StacLimitedBox to JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited