Skip to content

Commit 74b00a9

Browse files
committed
fix freezed example
1 parent 7aed40c commit 74b00a9

3 files changed

Lines changed: 417 additions & 521 deletions

File tree

examples/freezed_mappable/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ part 'main.mapper.dart';
66

77
@freezed
88
@MappableClass(discriminatorKey: 'type')
9-
class Union with _$Union {
9+
abstract class Union with _$Union {
1010
@MappableClass(discriminatorValue: 'data')
1111
const factory Union.data(@MappableField(key: 'mykey') int value) = Data;
1212
@MappableClass(discriminatorValue: 'loading')

0 commit comments

Comments
 (0)