DraftTextView.jsonString constructor
DraftTextView.jsonString(
- String json, {
- Key? key,
- OnLinkTab? onLinkTab,
- TextStyle defaultStyle = const TextStyle(fontSize: 12, color: Colors.black),
- ScrollController? controller,
- EdgeInsets? padding,
Implementation
DraftTextView.jsonString(String json,
{Key? key,
this.onLinkTab,
this.defaultStyle = const TextStyle(fontSize: 12, color: Colors.black),
this.controller,
this.padding})
: data = DraftData.fromJson(jsonDecode(json)),
super(key: key);