PositionArgument class
A data class represents arguments of Positioned only except for its child
.
Constructors
- PositionArgument({double? left, double? top, double? right, double? bottom, double? width, double? height})
-
Creates a PositionArgument from given parameters.
const
- PositionArgument.all(double value)
-
Creates a PositionArgument where left, top, right and bottom are all
value
.const - PositionArgument.fill({double? left = 0.0, double? top = 0.0, double? right = 0.0, double? bottom = 0.0})
-
Creates a PositionArgument where left, top, right and bottom default to zero.
const
- PositionArgument.fromLTRB(double? left, double? top, double? right, double? bottom)
-
Creates a PositionArgument from given left, top, right and bottom in order.
const
- PositionArgument.fromRect(Rect rect)
- Creates a PositionArgument from given Rect.
- PositionArgument.fromRelativeRect(RelativeRect rect)
- Creates a PositionArgument from given RelativeRect.
Properties
- bottom → double?
-
Mirrors to Positioned.bottom.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
Mirrors to Positioned.height.
final
- left → double?
-
Mirrors to Positioned.left.
final
- right → double?
-
Mirrors to Positioned.right.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → double?
-
Mirrors to Positioned.top.
final
- width → double?
-
Mirrors to Positioned.width.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited