Area class

Child area in the MultiSplitView.

The area may have a size defined in pixels or flex factor to define the filling of the available space.

The flex has a default value of 1 if the size is null.

The available size will be the size of the widget minus the thickness of the dividers.

Before becoming visible for the first time, the area may be adjusted to resolve the following inconsistencies:

  • If all areas are using size, they will all be converted to use flex.
Inheritance

Constructors

Area({double? size, double? flex, double? min, double? max, dynamic id, dynamic data, AreaWidgetBuilder? builder})

Properties

builder ↔ AreaWidgetBuilder?
The widget builder.
getter/setter pair
data ↔ dynamic
Any data associated with the area.
getter/setter pair
flex ↔ double?
Sets the area flex value and notify listeners.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
id → dynamic
Used as an internal Key and facilitates reconfiguration of the layout while maintaining the state of the widget. It will never be null and must be unique in the layout.
final
index → int
no setter
max ↔ double?
The max flex or size.
getter/setter pair
min ↔ double?
The min flex or size.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size ↔ double?
Size value in pixels.
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
copyWith({dynamic id()?, double? size()?, double? flex()?, double? min()?, double? max()?, dynamic data()?, AreaWidgetBuilder? builder()?}) → Area
Creates a copy of this Area with the given fields replaced with their.
dispose() → void
Discards any resources used by the object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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