Skip to content

Commit dba5743

Browse files
committed
Add CornerRadius typedValue.
1 parent e054486 commit dba5743

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/api/typed_value.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ extension ObjectExt on Object? {
2929
_ when R.isMap => value.toMap().tryCast<R>(),
3030
_ when R.isList || R.isIterable => value.toList<R>(),
3131
_ when R.isSet => value.toSet<R>(),
32+
const (CornerRadius) =>
33+
CornerRadius.fromJson(value).tryCast<R>() ?? defaultValue,
3234
_ => defaultValue,
3335
};
3436
}

0 commit comments

Comments
 (0)