2021-10-01 00:08:19 -04:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
|
|
part of 'chat_store.dart';
|
|
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
|
// StoreGenerator
|
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
2022-05-20 00:53:08 -04:00
|
|
|
// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic, no_leading_underscores_for_local_identifiers
|
2021-10-01 00:08:19 -04:00
|
|
|
|
2022-05-12 04:58:03 -04:00
|
|
|
mixin _$ChatStore on ChatStoreBase, Store {
|
2022-09-07 11:16:35 -04:00
|
|
|
Computed<List<IRCMessage>>? _$renderMessagesComputed;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
List<IRCMessage> get renderMessages => (_$renderMessagesComputed ??=
|
|
|
|
|
Computed<List<IRCMessage>>(() => super.renderMessages,
|
|
|
|
|
name: 'ChatStoreBase.renderMessages'))
|
|
|
|
|
.value;
|
|
|
|
|
|
2023-01-18 05:34:54 -05:00
|
|
|
late final _$timeRemainingAtom =
|
|
|
|
|
Atom(name: 'ChatStoreBase.timeRemaining', context: context);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Duration get timeRemaining {
|
|
|
|
|
_$timeRemainingAtom.reportRead();
|
|
|
|
|
return super.timeRemaining;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
set timeRemaining(Duration value) {
|
|
|
|
|
_$timeRemainingAtom.reportWrite(value, super.timeRemaining, () {
|
|
|
|
|
super.timeRemaining = value;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-06 19:53:56 -04:00
|
|
|
late final _$_notificationAtom =
|
|
|
|
|
Atom(name: 'ChatStoreBase._notification', context: context);
|
|
|
|
|
|
|
|
|
|
String? get notification {
|
|
|
|
|
_$_notificationAtom.reportRead();
|
|
|
|
|
return super._notification;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String? get _notification => notification;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
set _notification(String? value) {
|
|
|
|
|
_$_notificationAtom.reportWrite(value, super._notification, () {
|
|
|
|
|
super._notification = value;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-31 19:46:40 -04:00
|
|
|
late final _$_messagesAtom =
|
|
|
|
|
Atom(name: 'ChatStoreBase._messages', context: context);
|
|
|
|
|
|
|
|
|
|
ObservableList<IRCMessage> get messages {
|
|
|
|
|
_$_messagesAtom.reportRead();
|
|
|
|
|
return super._messages;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
ObservableList<IRCMessage> get _messages => messages;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
set _messages(ObservableList<IRCMessage> value) {
|
|
|
|
|
_$_messagesAtom.reportWrite(value, super._messages, () {
|
|
|
|
|
super._messages = value;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-12 04:58:03 -04:00
|
|
|
late final _$_autoScrollAtom =
|
|
|
|
|
Atom(name: 'ChatStoreBase._autoScroll', context: context);
|
2021-10-17 02:15:51 -04:00
|
|
|
|
2021-10-17 17:56:16 -04:00
|
|
|
bool get autoScroll {
|
|
|
|
|
_$_autoScrollAtom.reportRead();
|
|
|
|
|
return super._autoScroll;
|
2021-10-17 02:15:51 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
2021-10-17 17:56:16 -04:00
|
|
|
bool get _autoScroll => autoScroll;
|
2021-10-17 02:15:51 -04:00
|
|
|
|
|
|
|
|
@override
|
2021-10-17 17:56:16 -04:00
|
|
|
set _autoScroll(bool value) {
|
|
|
|
|
_$_autoScrollAtom.reportWrite(value, super._autoScroll, () {
|
|
|
|
|
super._autoScroll = value;
|
2021-10-17 02:15:51 -04:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-02 20:12:28 -04:00
|
|
|
late final _$_inputTextAtom =
|
|
|
|
|
Atom(name: 'ChatStoreBase._inputText', context: context);
|
|
|
|
|
|
|
|
|
|
String get inputText {
|
|
|
|
|
_$_inputTextAtom.reportRead();
|
|
|
|
|
return super._inputText;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String get _inputText => inputText;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
set _inputText(String value) {
|
|
|
|
|
_$_inputTextAtom.reportWrite(value, super._inputText, () {
|
|
|
|
|
super._inputText = value;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-02 02:46:20 -04:00
|
|
|
late final _$_showSendButtonAtom =
|
|
|
|
|
Atom(name: 'ChatStoreBase._showSendButton', context: context);
|
|
|
|
|
|
|
|
|
|
bool get showSendButton {
|
|
|
|
|
_$_showSendButtonAtom.reportRead();
|
|
|
|
|
return super._showSendButton;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool get _showSendButton => showSendButton;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
set _showSendButton(bool value) {
|
|
|
|
|
_$_showSendButtonAtom.reportWrite(value, super._showSendButton, () {
|
|
|
|
|
super._showSendButton = value;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-09 22:24:02 -04:00
|
|
|
late final _$_showEmoteAutocompleteAtom =
|
|
|
|
|
Atom(name: 'ChatStoreBase._showEmoteAutocomplete', context: context);
|
2022-04-01 16:30:35 -04:00
|
|
|
|
2022-06-09 22:24:02 -04:00
|
|
|
bool get showEmoteAutocomplete {
|
|
|
|
|
_$_showEmoteAutocompleteAtom.reportRead();
|
|
|
|
|
return super._showEmoteAutocomplete;
|
2022-04-01 16:30:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
2022-06-09 22:24:02 -04:00
|
|
|
bool get _showEmoteAutocomplete => showEmoteAutocomplete;
|
2022-04-01 16:30:35 -04:00
|
|
|
|
|
|
|
|
@override
|
2022-06-09 22:24:02 -04:00
|
|
|
set _showEmoteAutocomplete(bool value) {
|
|
|
|
|
_$_showEmoteAutocompleteAtom
|
|
|
|
|
.reportWrite(value, super._showEmoteAutocomplete, () {
|
|
|
|
|
super._showEmoteAutocomplete = value;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
late final _$_showMentionAutocompleteAtom =
|
|
|
|
|
Atom(name: 'ChatStoreBase._showMentionAutocomplete', context: context);
|
|
|
|
|
|
|
|
|
|
bool get showMentionAutocomplete {
|
|
|
|
|
_$_showMentionAutocompleteAtom.reportRead();
|
|
|
|
|
return super._showMentionAutocomplete;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool get _showMentionAutocomplete => showMentionAutocomplete;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
set _showMentionAutocomplete(bool value) {
|
|
|
|
|
_$_showMentionAutocompleteAtom
|
|
|
|
|
.reportWrite(value, super._showMentionAutocomplete, () {
|
|
|
|
|
super._showMentionAutocomplete = value;
|
2022-04-01 16:30:35 -04:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-12 04:58:03 -04:00
|
|
|
late final _$_userStateAtom =
|
|
|
|
|
Atom(name: 'ChatStoreBase._userState', context: context);
|
2021-12-12 18:51:18 -05:00
|
|
|
|
|
|
|
|
USERSTATE get userState {
|
|
|
|
|
_$_userStateAtom.reportRead();
|
|
|
|
|
return super._userState;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
USERSTATE get _userState => userState;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
set _userState(USERSTATE value) {
|
|
|
|
|
_$_userStateAtom.reportWrite(value, super._userState, () {
|
|
|
|
|
super._userState = value;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-23 22:12:56 -04:00
|
|
|
late final _$expandChatAtom =
|
|
|
|
|
Atom(name: 'ChatStoreBase.expandChat', context: context);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool get expandChat {
|
|
|
|
|
_$expandChatAtom.reportRead();
|
|
|
|
|
return super.expandChat;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
set expandChat(bool value) {
|
|
|
|
|
_$expandChatAtom.reportWrite(value, super.expandChat, () {
|
|
|
|
|
super.expandChat = value;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-26 23:23:53 -04:00
|
|
|
late final _$getAssetsAsyncAction =
|
|
|
|
|
AsyncAction('ChatStoreBase.getAssets', context: context);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> getAssets() {
|
|
|
|
|
return _$getAssetsAsyncAction.run(() => super.getAssets());
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-12 04:58:03 -04:00
|
|
|
late final _$ChatStoreBaseActionController =
|
|
|
|
|
ActionController(name: 'ChatStoreBase', context: context);
|
2021-10-01 00:08:19 -04:00
|
|
|
|
2021-10-22 02:46:06 -04:00
|
|
|
@override
|
2021-10-26 01:06:57 -04:00
|
|
|
void _handleIRCData(String data) {
|
2022-05-20 00:53:08 -04:00
|
|
|
final _$actionInfo = _$ChatStoreBaseActionController.startAction(
|
2022-05-12 04:58:03 -04:00
|
|
|
name: 'ChatStoreBase._handleIRCData');
|
2021-10-22 02:46:06 -04:00
|
|
|
try {
|
2021-10-26 01:06:57 -04:00
|
|
|
return super._handleIRCData(data);
|
2021-10-22 02:46:06 -04:00
|
|
|
} finally {
|
2022-05-20 00:53:08 -04:00
|
|
|
_$ChatStoreBaseActionController.endAction(_$actionInfo);
|
2021-10-22 02:46:06 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-26 01:06:57 -04:00
|
|
|
@override
|
2021-11-25 22:01:02 -05:00
|
|
|
void resumeScroll() {
|
2022-05-20 00:53:08 -04:00
|
|
|
final _$actionInfo = _$ChatStoreBaseActionController.startAction(
|
2022-05-12 04:58:03 -04:00
|
|
|
name: 'ChatStoreBase.resumeScroll');
|
2021-10-26 01:06:57 -04:00
|
|
|
try {
|
2021-11-25 22:01:02 -05:00
|
|
|
return super.resumeScroll();
|
2021-10-24 03:53:08 -04:00
|
|
|
} finally {
|
2022-05-20 00:53:08 -04:00
|
|
|
_$ChatStoreBaseActionController.endAction(_$actionInfo);
|
2021-10-24 03:53:08 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-23 15:02:21 -05:00
|
|
|
@override
|
2022-01-26 15:42:37 -05:00
|
|
|
void connectToChat() {
|
2022-05-20 00:53:08 -04:00
|
|
|
final _$actionInfo = _$ChatStoreBaseActionController.startAction(
|
2022-05-12 04:58:03 -04:00
|
|
|
name: 'ChatStoreBase.connectToChat');
|
2022-01-23 15:02:21 -05:00
|
|
|
try {
|
2022-01-26 15:42:37 -05:00
|
|
|
return super.connectToChat();
|
2022-01-23 15:02:21 -05:00
|
|
|
} finally {
|
2022-05-20 00:53:08 -04:00
|
|
|
_$ChatStoreBaseActionController.endAction(_$actionInfo);
|
2022-01-23 15:02:21 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-28 15:30:23 -04:00
|
|
|
@override
|
|
|
|
|
void addMessages() {
|
|
|
|
|
final _$actionInfo = _$ChatStoreBaseActionController.startAction(
|
|
|
|
|
name: 'ChatStoreBase.addMessages');
|
|
|
|
|
try {
|
|
|
|
|
return super.addMessages();
|
|
|
|
|
} finally {
|
|
|
|
|
_$ChatStoreBaseActionController.endAction(_$actionInfo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-23 14:01:16 -05:00
|
|
|
@override
|
|
|
|
|
void sendMessage(String message) {
|
2022-05-20 00:53:08 -04:00
|
|
|
final _$actionInfo = _$ChatStoreBaseActionController.startAction(
|
2022-05-12 04:58:03 -04:00
|
|
|
name: 'ChatStoreBase.sendMessage');
|
2022-01-23 14:01:16 -05:00
|
|
|
try {
|
|
|
|
|
return super.sendMessage(message);
|
|
|
|
|
} finally {
|
2022-05-20 00:53:08 -04:00
|
|
|
_$ChatStoreBaseActionController.endAction(_$actionInfo);
|
2022-01-23 14:01:16 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-01 16:30:35 -04:00
|
|
|
@override
|
|
|
|
|
void addEmote(Emote emote, {bool autocompleteMode = false}) {
|
2022-05-20 00:53:08 -04:00
|
|
|
final _$actionInfo = _$ChatStoreBaseActionController.startAction(
|
2022-05-12 04:58:03 -04:00
|
|
|
name: 'ChatStoreBase.addEmote');
|
2022-04-01 16:30:35 -04:00
|
|
|
try {
|
|
|
|
|
return super.addEmote(emote, autocompleteMode: autocompleteMode);
|
|
|
|
|
} finally {
|
2022-05-20 00:53:08 -04:00
|
|
|
_$ChatStoreBaseActionController.endAction(_$actionInfo);
|
2022-04-01 16:30:35 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-06 19:53:56 -04:00
|
|
|
@override
|
|
|
|
|
void updateNotification(String notificationMessage) {
|
|
|
|
|
final _$actionInfo = _$ChatStoreBaseActionController.startAction(
|
|
|
|
|
name: 'ChatStoreBase.updateNotification');
|
|
|
|
|
try {
|
|
|
|
|
return super.updateNotification(notificationMessage);
|
|
|
|
|
} finally {
|
|
|
|
|
_$ChatStoreBaseActionController.endAction(_$actionInfo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-18 05:34:54 -05:00
|
|
|
@override
|
2023-10-22 18:38:32 -04:00
|
|
|
void updateSleepTimer(
|
|
|
|
|
{required Duration duration, required VoidCallback onTimerFinished}) {
|
2023-01-18 05:34:54 -05:00
|
|
|
final _$actionInfo = _$ChatStoreBaseActionController.startAction(
|
|
|
|
|
name: 'ChatStoreBase.updateSleepTimer');
|
|
|
|
|
try {
|
2023-10-22 18:38:32 -04:00
|
|
|
return super.updateSleepTimer(
|
|
|
|
|
duration: duration, onTimerFinished: onTimerFinished);
|
2023-01-18 05:34:54 -05:00
|
|
|
} finally {
|
|
|
|
|
_$ChatStoreBaseActionController.endAction(_$actionInfo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void cancelSleepTimer() {
|
|
|
|
|
final _$actionInfo = _$ChatStoreBaseActionController.startAction(
|
|
|
|
|
name: 'ChatStoreBase.cancelSleepTimer');
|
|
|
|
|
try {
|
|
|
|
|
return super.cancelSleepTimer();
|
|
|
|
|
} finally {
|
|
|
|
|
_$ChatStoreBaseActionController.endAction(_$actionInfo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-01 00:08:19 -04:00
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return '''
|
2023-01-18 05:34:54 -05:00
|
|
|
timeRemaining: ${timeRemaining},
|
2022-09-07 11:16:35 -04:00
|
|
|
expandChat: ${expandChat},
|
|
|
|
|
renderMessages: ${renderMessages}
|
2021-10-01 00:08:19 -04:00
|
|
|
''';
|
|
|
|
|
}
|
|
|
|
|
}
|