Size.from constructor

Size.from(
  1. dynamic value
)

Implementation

factory Size.from(dynamic value) {
  final size = UPoint.from(value);
  return Size(max(0, size.x.toDouble()), max(0, size.y.toDouble()));
}