NapaText class

Inheritance

Constructors

NapaText(String text, {NapaTextStyle? style, StrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, NapaTextScaler? textScaler, int? maxLines, String? semanticsLabel, String? semanticsIdentifier, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior, Color? selectionColor})

Properties

childMode NapaChildMode
finalinherited
hashCode int
The hash code for this object.
no setterinherited
locale Locale?
getter/setter pair
maxLines int?
getter/setter pair
overflow TextOverflow?
getter/setter pair
properties List<InspectableProperty>
inspectable property list.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionColor Color?
getter/setter pair
semanticsIdentifier String?
getter/setter pair
semanticsLabel String?
getter/setter pair
softWrap bool?
getter/setter pair
strutStyle StrutStyle?
getter/setter pair
style NapaTextStyle?
getter/setter pair
text String
getter/setter pair
textAlign TextAlign?
getter/setter pair
textDirection TextDirection?
getter/setter pair
textHeightBehavior TextHeightBehavior?
getter/setter pair
textScaler NapaTextScaler?
getter/setter pair
textWidthBasis TextWidthBasis?
getter/setter pair
widgetName String
no setteroverride

Methods

getProperty(String name) → InspectableProperty?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeProperty(String name) → void
inherited
toJson() → dynamic
toJson returns a json compatible object.
override
toString() String
A string representation of this object.
override
toWidget() Widget
Get a Flutter widget equivalent object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

decode(dynamic data) NapaText?
Deserialize a json compatible object into a NapaWidget or null.
override