Size2f.fromRecord constructor

Size2f.fromRecord(
  1. (double, double) record
)

Implementation

factory Size2f.fromRecord((double, double) record) {
  final p = calloc<cvg.Size2f>()
    ..ref.height = record.$2
    ..ref.width = record.$1;
  return Size2f.fromPointer(p);
}