forked from Henry-Hiles/nexus
Working images
This commit is contained in:
parent
0e6b9a8133
commit
099725063f
20 changed files with 388 additions and 375 deletions
|
|
@ -9,6 +9,7 @@ abstract class ClientState with _$ClientState {
|
|||
required bool isLoggedIn,
|
||||
required bool isVerified,
|
||||
required String? userId,
|
||||
required String? homeserverUrl,
|
||||
}) = _ClientState;
|
||||
|
||||
factory ClientState.fromJson(Map<String, Object?> json) =>
|
||||
|
|
|
|||
16
lib/models/message_config.dart
Normal file
16
lib/models/message_config.dart
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
import "package:nexus/models/event.dart";
|
||||
part "message_config.freezed.dart";
|
||||
part "message_config.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class MessageConfig with _$MessageConfig {
|
||||
const factory MessageConfig({
|
||||
@Default(false) bool mustBeText,
|
||||
@Default(false) bool includeEdits,
|
||||
required Event event,
|
||||
}) = _MessageConfig;
|
||||
|
||||
factory MessageConfig.fromJson(Map<String, Object?> json) =>
|
||||
_$MessageConfigFromJson(json);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue