DraftTextView.jsonString constructor

DraftTextView.jsonString(
  1. String json, {
  2. Key? key,
  3. OnLinkTab? onLinkTab,
  4. TextStyle defaultStyle = const TextStyle(fontSize: 12, color: Colors.black),
  5. ScrollController? controller,
  6. 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);