TextSpec class

Inheritance

Constructors

TextSpec({TextOverflow? overflow, StrutStyle? strutStyle, TextAlign? textAlign, double? textScaleFactor, int? maxLines, TextStyle? style, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior, TextDirection? textDirection, bool? softWrap, TextDirective? directive, AnimatedData? animated})
const
TextSpec.exhaustive({required TextOverflow? overflow, required StrutStyle? strutStyle, required TextAlign? textAlign, required double? textScaleFactor, required int? maxLines, required TextStyle? style, required TextWidthBasis? textWidthBasis, required TextHeightBehavior? textHeightBehavior, required TextDirection? textDirection, required bool? softWrap, required TextDirective? directive, required AnimatedData? animated})
const

Properties

animated AnimatedData?
finalinherited
directive TextDirective?
final
hashCode int
The hash code for this object.
no setterinherited
isAnimated bool
no setterinherited
maxLines int?
final
overflow TextOverflow?
final
props List<Object?>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
softWrap bool?
final
stringify bool
no setterinherited
strutStyle StrutStyle?
final
style TextStyle?
final
textAlign TextAlign?
final
textDirection TextDirection?
final
textHeightBehavior TextHeightBehavior?
final
textScaleFactor double?
final
textWidthBasis TextWidthBasis?
final
type Type
no setterinherited

Methods

copyWith({bool? softWrap, TextOverflow? overflow, StrutStyle? strutStyle, TextAlign? textAlign, double? textScaleFactor, int? maxLines, TextStyle? style, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior, TextDirection? textDirection, TextDirective? directive, AnimatedData? animated}) TextSpec
Creates a copy of this spec with the given fields replaced by the non-null parameter values.
override
getDiff(EqualityMixin other) Map<String, String>
inherited
lerp(covariant TextSpec? other, double t) TextSpec
Linearly interpolate with another Spec 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

Static Methods

from(MixData mix) TextSpec
of(BuildContext context) TextSpec