File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,11 @@ extension ObjectExt on Object? {
2323 const (num ) => value.toNum ().tryCast <R >() ?? defaultValue,
2424 const (bool ) => value.toBool ().tryCast <R >() ?? defaultValue,
2525 const (ColorRGBA ) => value.toColorRGBA ().tryCast <R >() ?? defaultValue,
26- const (ColorRGB ) => ColorRGB .fromColorRGBA (value.toColorRGBA ()).tryCast <R >() ??
27- defaultValue,
28- const (PaintModel ) => value.toColorRGBA ()? .toPaint ().tryCast <R >() ?? defaultValue,
26+ const (ColorRGB ) =>
27+ ColorRGB .fromColorRGBA (value.toColorRGBA ()).tryCast <R >() ??
28+ defaultValue,
29+ const (PaintModel ) =>
30+ value.toColorRGBA ()? .toPaint ().tryCast <R >() ?? defaultValue,
2931 _ when R .isMap => value.toMap ().tryCast <R >(),
3032 _ when R .isList || R .isIterable => value.toList <R >(),
3133 _ when R .isSet => value.toSet <R >(),
You can’t perform that action at this time.
0 commit comments