Block<T extends Object> class
final
Block represents a schematic block with specific dimensions, color, and optional labels.
where typeT
is the unique identifier for the block.
Constructors
-
Block({T? identifier, double width = 100, double height = 100, HideFenceBorder fenceBorder = HideFenceBorder.none, String? label, TextStyle? labelStyle, TextAlign? labelAlign, Color color = Colors.purpleAccent, Offset? position, List<
BlockOpening> openings = const [], BlockAlignment? alignmentToPreviousBlock, List<BlockArcOpening> arcOpenings = const [], double fenceStrokeWidth = 1.5}) -
const
Properties
- alignmentToPreviousBlock → BlockAlignment?
-
The alignment of the block relative to the previous block.
final
-
arcOpenings
→ List<
BlockArcOpening> -
List of arc openings within the block.
final
- color → Color
-
The color of the block.
final
-
effectiveOpenings
→ List<
BlockOpening> -
no setter
- fenceBorder → HideFenceBorder
-
Determines which sides of the block's border should be hidden.
final
- fenceStrokeWidth → double
-
The stroke width for the fence border.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double
-
The height of the block.
final
- identifier → T?
-
Unique block identifier
final
- label → String?
-
The label for the block.
final
- labelAlign → TextAlign?
-
The alignment for the block label text.
final
- labelStyle → TextStyle?
-
The style for the block label text.
final
-
openings
→ List<
BlockOpening> -
no setter
- position → Offset?
-
The position of the block.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double
-
The width of the block.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override