encodeWidgetStatePropertyOutlinedBorder static method
Map<String, dynamic> ?
encodeWidgetStatePropertyOutlinedBorder(
- WidgetStateProperty<
OutlinedBorder?> ? value, { - bool validate = true,
Encodes the value
into a JSON representation.
{
"disabled": "<OutlinedBorder>",
"dragged": "<OutlinedBorder>",
"empty": "<OutlinedBorder>",
"error": "<OutlinedBorder>",
"focused": "<OutlinedBorder>",
"hovered": "<OutlinedBorder>",
"pressed": "<OutlinedBorder>",
"scrolledUnder": "<OutlinedBorder>",
"selected": "<OutlinedBorder>"
}
See also:
Implementation
static Map<String, dynamic>? encodeWidgetStatePropertyOutlinedBorder(
WidgetStateProperty<OutlinedBorder?>? value, {
bool validate = true,
}) {
Map<String, dynamic>? result;
if (value != null) {
result = {
'disabled': encodeOutlinedBorder(
value.resolve({WidgetState.disabled}),
),
'dragged': encodeOutlinedBorder(value.resolve({WidgetState.dragged})),
'empty': encodeOutlinedBorder(value.resolve({})),
'error': encodeOutlinedBorder(value.resolve({WidgetState.error})),
'focused': encodeOutlinedBorder(value.resolve({WidgetState.focused})),
'hovered': encodeOutlinedBorder(value.resolve({WidgetState.hovered})),
'pressed': encodeOutlinedBorder(value.resolve({WidgetState.pressed})),
'scrolledUnder': encodeOutlinedBorder(
value.resolve({WidgetState.scrolledUnder}),
),
'selected': encodeOutlinedBorder(
value.resolve({WidgetState.selected}),
),
};
}
return _stripDynamicNull(result);
}