encodeBottomAppBarTheme static method

Map<String, dynamic>? encodeBottomAppBarTheme(
  1. BottomAppBarTheme? value
)

Encodes the given value into a JSON representation.

{
  "color": "<Color>",
  "elevation": "<double>",
  "height": "<double>",
  "shape": "<NotchedShape>",
  "surfaceTintColor": "<Color>"
}

See also:

Implementation

static Map<String, dynamic>? encodeBottomAppBarTheme(
  BottomAppBarTheme? value,
) {
  Map<String, dynamic>? result;

  if (value != null) {
    result = <String, dynamic>{
      'color': encodeColor(value.color),
      'elevation': value.elevation,
      'height': value.height,
      'shape': encodeNotchedShape(value.shape),
      'surfaceTintColor': encodeColor(value.color),
    };
  }

  return _stripNull(result);
}