borderSide static method

Map<String, dynamic>? borderSide(
  1. BorderSide? borderSide
)

Returns a BorderSide from the specified map.

If the map is absent, returns null.

Otherwise (even if it has no keys), the BorderSide is created from the keys color (see color, defaults to black), width (a double, defaults to 1.0), and style (see enumValue for BorderStyle, defaults to BorderStyle.solid).

Implementation

static Map<String, dynamic>? borderSide(BorderSide? borderSide) {
  if (borderSide == null) return null;
  return {
    'color': color(borderSide.color),
    'width': borderSide.width,
    'style': enumValue(borderSide.style),
  };
}