SBBContentBoxStyle class

Defines the visual properties of SBBContentBox.

Use this class in combination with SBBContentBoxThemeData to customize the appearance of content boxes throughout your app or for specific widget subtrees.

See also:

Inheritance
Available extensions

Constructors

SBBContentBoxStyle({EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? color, Clip? clipBehavior, bool? isSemanticContainer})

Properties

clipBehavior → Clip?
The content will be clipped (or not) according to this option.
final
color → Color?
The background color of the content box.
final
hashCode → int
The hash code for this object.
no setterinherited
isSemanticContainer → bool?
Whether this widget represents a single semantic container, or if false a collection of individual semantic nodes.
final
margin → EdgeInsetsGeometry?
The empty space that surrounds the SBBContentBox.
final
padding → EdgeInsetsGeometry?
The empty space that separates the child and the edge of SBBContentBox.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → Object
The extension's type.
no setterinherited

Methods

copyWith({EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? color, Clip? clipBehavior, bool? isSemanticContainer}) → SBBContentBoxStyle
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant ThemeExtension<SBBContentBoxStyle>? other, double t) → SBBContentBoxStyle
Linearly interpolate with another ThemeExtension object.
override
merge(SBBContentBoxStyle? other) → SBBContentBoxStyle

Available on SBBContentBoxStyle?, provided by the SBBContentBoxStyleX extension

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

radius → const BorderRadius
The radius of the content box.
shape → const ShapeBorder
The border of the content box.