Skip to content

Commit ba38c93

Browse files
committed
code format
1 parent 7ff5287 commit ba38c93

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/src/api/typed_value.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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>(),

0 commit comments

Comments
 (0)