parseSize function

Size? parseSize(
  1. Map<String, dynamic>? map
)

Implementation

Size? parseSize(Map<String, dynamic>? map) {
  if (map == null) return null;
  double width = map["width"].toDouble();
  double height = map["height"].toDouble();
  return Size(width, height);
}