ShapePadding class final

Insets its child. Absolute padding shrinks with a small region instead of inverting it; proportional padding is a fraction of the region.

Inheritance

Constructors

ShapePadding(double padding, {required ShapePart child})
The same padding on every side.
ShapePadding.only({double left = 0, double top = 0, double right = 0, double bottom = 0, required ShapePart child})
Separate padding per side, such as a title clearing a leading control.
ShapePadding.proportional(double fraction, {required ShapePart child})
The same fraction of the region's width and height on every side, such as text kept clear of an ellipse's curve. It never raises the minimum size.

Properties

bottom → double
final
child → ShapePart
final
hashCode → int
The hash code for this object.
no setterinherited
left → double
final
minimumSize → DiagramSize
no setteroverride
proportional → bool
final
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
top → double
final

Methods

minimumSizeFor(FramedElement shape, Map<String, double> textHeights) → DiagramSize
override
named(String name) → ShapePart
Reuses this part with namespaced text slots and explicitly named surfaces.
inherited
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