RichTextEditorController.fromMap constructor
Data deserializer method for this class
This is used to create a new instance of this class from a map
Implementation
factory RichTextEditorController.fromMap(Map<String, dynamic> map) {
return RichTextEditorController(
text: map['text'] as String,
deltas: TextDeltasUtils.deltasFromList(
(map['deltas'] as List).cast<Map>(),
),
)
..value = TextEditingValue.fromJSON(
(map['value'] as Map).cast<String, dynamic>(),
)
..metadata = map['metadata'] == null
? null
: TextMetadata.fromMap(
(map['metadata'] as Map).cast<String, dynamic>(),
);
}