Skip to content

Commit 6a3e8e3

Browse files
committed
Update mapper_container.dart
fix formatting
1 parent b0d16e9 commit 6a3e8e3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/dart_mappable/lib/src/mapper_container.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,12 @@ abstract class MapperContainer {
103103
PrimitiveMapper<Object>((v) => v, dynamic),
104104
PrimitiveMapper<Object>((v) => v, Object),
105105
PrimitiveMapper<String>((v) => v.toString()),
106-
PrimitiveMapper<int>((v) => v is num ? v.round() : num.parse(v.toString()).round()),
107-
PrimitiveMapper<double>((v) => v is num ? v.toDouble() : double.parse(v.toString())),
106+
PrimitiveMapper<int>(
107+
(v) => v is num ? v.round() : num.parse(v.toString()).round(),
108+
),
109+
PrimitiveMapper<double>(
110+
(v) => v is num ? v.toDouble() : double.parse(v.toString()),
111+
),
108112
PrimitiveMapper<num>((v) => v is num ? v : num.parse(v.toString()), num),
109113
PrimitiveMapper<bool>((v) => v is num ? v != 0 : v.toString() == 'true'),
110114
DateTimeMapper(),

0 commit comments

Comments
 (0)