LabelSize constructor
Implementation
factory LabelSize({required double widthMm, required double heightMm}) {
if (!widthMm.isFinite || widthMm <= 0) {
throw ArgumentError.value(widthMm, 'widthMm', 'Must be positive.');
}
if (!heightMm.isFinite || heightMm <= 0) {
throw ArgumentError.value(heightMm, 'heightMm', 'Must be positive.');
}
return LabelSize._(widthMm: widthMm, heightMm: heightMm);
}