encodeToolbarOptions static method
Encodes the given value
to a JSON compatible Map. The returned returned
value will have the following structure.
{
"copy": <bool>,
"cut": <bool>,
"paste": <bool>,
"selectAll": <bool>
}
Implementation
static Map<String, dynamic>? encodeToolbarOptions(ToolbarOptions? value) {
Map<String, dynamic>? result;
if (value != null) {
result = {
'copy': value.copy,
'cut': value.cut,
'paste': value.paste,
'selectAll': value.selectAll,
};
}
return result;
}