ResolvedIcon constructor
ResolvedIcon({
- required CommandPathSource source,
- required Rect2D viewBox,
- required FillRule fillRule,
Implementation
factory ResolvedIcon({
required CommandPathSource source,
required Rect2D viewBox,
required FillRule fillRule,
}) {
if (![
viewBox.left,
viewBox.top,
viewBox.right,
viewBox.bottom,
viewBox.width,
viewBox.height,
].every((value) => value.isFinite) ||
viewBox.width <= 0 ||
viewBox.height <= 0) {
throw ArgumentError.value(
viewBox,
'viewBox',
'Must be finite and positive.',
);
}
return ResolvedIcon._(source, viewBox, fillRule);
}