TextStylePreviewStyle class
The style of the TextStylePreview.
- Inheritance
-
- Object
- ThemeExtension<
TextStylePreviewStyle> - TextStylePreviewStyle
Constructors
- TextStylePreviewStyle({Color? backgroundColor, Color? barrierColor, double? modalHeight, LaunchType? launchType, bool? showDivider, DescriptionBuilder? descriptionBuilder, bool? reverse, int? previewMaxLines})
-
const
Properties
- backgroundColor → Color?
-
The background color of the modal.
Default is null.
final
- barrierColor → Color?
-
The barrier color of the modal.
Default is Colors.transparent.
final
- descriptionBuilder → DescriptionBuilder?
-
The builder of the text style description.
Default is
(typeScaleCategory, textStyle) => typeScaleCategory.name
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- launchType → LaunchType?
-
The type of launch for the TextStylePreview.
Default is LaunchType.onTap.
final
- modalHeight → double?
-
The height of the modal.
Default is null.
final
- previewMaxLines → int?
-
The maximum number of lines for the preview.
Default is 1.
final
- reverse → bool?
-
Whether to reverse the order of the scale categories.
Default is false.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showDivider → bool?
-
Whether to show a divider top of the modal.
Default is true.
final
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{Color? backgroundColor, Color? barrierColor, double? modalHeight, LaunchType? launchType, bool? showDivider, DescriptionBuilder? descriptionBuilder, bool? reverse, int? previewMaxLines}) → ThemeExtension< TextStylePreviewStyle> -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant ThemeExtension< TextStylePreviewStyle> ? other, double t) → ThemeExtension<TextStylePreviewStyle> -
Linearly interpolate with another ThemeExtension object.
override
-
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