ShapeBorder class final
One of Flutter's OutlinedBorders: its kind, corner radius and side.
JSON: {"type": "stadium", "borderRadius": 8, "side": {...}}.
- Annotations
-
- @immutable
Constructors
- ShapeBorder({ShapeBorderType type = ShapeBorderType.roundedRectangle, BorderRadius borderRadius = BorderRadius.zero, BorderSide? side})
-
const
Properties
- borderRadius → BorderRadius
-
Corner radii (rectangle types).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- side → BorderSide?
-
The outline; null draws none.
final
- type → ShapeBorderType
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Object? json) → ShapeBorder?