iconThemeData static method

Map<String, dynamic>? iconThemeData(
  1. IconThemeData? data
)

Returns an IconThemeData from the specified map.

If the map is absent, returns null.

Otherwise (even if it has no keys), the IconThemeData is created from the following keys: 'color([color]),opacity(double),size` (double).

Implementation

static Map<String, dynamic>? iconThemeData(IconThemeData? data) {
  if (data == null) return null;
  return NotNullMap.from({
    'color': data.color,
    'opacity': data.opacity,
    'size': data.size,
  });
}