DraftTextView.json constructor

DraftTextView.json(
  1. dynamic 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.json(dynamic json,
    {Key? key,
    this.onLinkTab,
    this.defaultStyle = const TextStyle(fontSize: 12, color: Colors.black),
    this.controller,
    this.padding})
    : data = DraftData.fromJson(json),
      super(key: key);