StacBoxShape enum

Shape options for boxes and containers.

Defines the overall shape that a box should take when rendering borders, shadows, and other decorative elements.

Inheritance
Available extensions

Values

rectangle → const StacBoxShape

An axis-aligned rectangle, optionally with rounded corners.

The amount of corner rounding, if any, is determined by the border radius specified by classes such as BoxDecoration or Border. The rectangle's edges match those of the box in which it is painted.

See also:

  • RoundedRectangleBorder, the equivalent ShapeBorder.
circle → const StacBoxShape

A circle centered in the middle of the box into which the Border or BoxDecoration is painted. The diameter of the circle is the shortest dimension of the box, either the width or the height, such that the circle touches the edges of the box.

See also:

  • CircleBorder, the equivalent ShapeBorder.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<StacBoxShape>
A constant List of the values in this enum, in order of their declaration.