Move to Flutter 3.47, use the improvements that come with this (#64)
Reviewed-on: #64
This commit is contained in:
parent
01b13b4764
commit
077044ec19
157 changed files with 1366 additions and 1457 deletions
|
|
@ -1,11 +1,13 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
|
||||
part "user.freezed.dart";
|
||||
part "user.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class UserConfig with _$UserConfig {
|
||||
const factory UserConfig({required String? roomId, required String userId}) =
|
||||
_UserConfig;
|
||||
@Freezed(toJson: false, fromJson: false)
|
||||
@JsonSerializable()
|
||||
class const UserConfig({final String? roomId, required final String userId})
|
||||
with _$UserConfig {
|
||||
Map<String, Object?> toJson() => _$UserConfigToJson(this);
|
||||
|
||||
factory UserConfig.fromJson(Map<String, Object?> json) =>
|
||||
_$UserConfigFromJson(json);
|
||||
|
|
|
|||
Loading…
Reference in a new issue