of static method

Dimensions of({
  1. required num? height,
  2. required num? width,
})

Implementation

static Dimensions of({required num? height, required num? width}) {
  final self =
      Dimensions(<String, dynamic>{}, mtype: DimensionsRef, update: true);
  if (height != null) self.height = height;
  if (width != null) self.width = width;
  return self;
}