encodeBottomSheetThemeData static method
Encodes the given value
into a JSON representation.
{
"backgroundColor": <Color>,
"clipBehavior": <Clip>,
"elevation": <double>,
"modalBackgroundColor": <Color>,
"modalElevation": <double>,
"shape": <ShapeBorder>
}
See also:
Implementation
static Map<String, dynamic>? encodeBottomSheetThemeData(
BottomSheetThemeData? value,
) {
Map<String, dynamic>? result;
if (value != null) {
result = <String, dynamic>{
'backgroundColor': encodeColor(value.backgroundColor),
'clipBehavior': encodeClip(value.clipBehavior),
'elevation': value.elevation,
'modalBackgroundColor': encodeColor(value.modalBackgroundColor),
'modalElevation': value.modalElevation,
'shape': encodeShapeBorder(value.shape),
};
}
return _stripNull(result);
}