JsonText constructor
JsonText(
- dynamic data, {
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- Locale? locale,
- int? maxLines,
- TextOverflow? overflow,
- Color? selectionColor,
- String? semanticsLabel,
- bool? softWrap,
- StrutStyle? strutStyle,
- TextStyle? style,
- TextAlign? textAlign,
- TextDirection? textDirection,
- TextHeightBehavior? textHeightBehavior,
- double? textScaleFactor,
- TextScaler? textScaler,
- TextWidthBasis? textWidthBasis,
Implementation
JsonText(
this.data, {
Map<String, dynamic> args = const {},
JsonWidgetRegistry? registry,
this.locale,
this.maxLines,
this.overflow,
this.selectionColor,
this.semanticsLabel,
this.softWrap,
this.strutStyle,
this.style,
this.textAlign,
this.textDirection,
this.textHeightBehavior,
this.textScaleFactor,
this.textScaler,
this.textWidthBasis,
}) : super(
jsonWidgetArgs: JsonTextBuilderModel.fromDynamic(
{
'text': data,
'locale': locale,
'maxLines': maxLines,
'overflow': overflow,
'selectionColor': selectionColor,
'semanticsLabel': semanticsLabel,
'softWrap': softWrap,
'strutStyle': strutStyle,
'style': style,
'textAlign': textAlign,
'textDirection': textDirection,
'textHeightBehavior': textHeightBehavior,
'textScaleFactor': textScaleFactor,
'textScaler': textScaler,
'textWidthBasis': textWidthBasis,
...args,
},
args: args,
registry: registry,
),
jsonWidgetBuilder: () => JsonTextBuilder(
args: JsonTextBuilderModel.fromDynamic(
{
'text': data,
'locale': locale,
'maxLines': maxLines,
'overflow': overflow,
'selectionColor': selectionColor,
'semanticsLabel': semanticsLabel,
'softWrap': softWrap,
'strutStyle': strutStyle,
'style': style,
'textAlign': textAlign,
'textDirection': textDirection,
'textHeightBehavior': textHeightBehavior,
'textScaleFactor': textScaleFactor,
'textScaler': textScaler,
'textWidthBasis': textWidthBasis,
...args,
},
args: args,
registry: registry,
),
),
jsonWidgetType: JsonTextBuilder.kType,
);