More consistent usage of arrow functions
This commit is contained in:
parent
09ba8e92a1
commit
9adaad7142
|
@ -89,29 +89,19 @@ class _VmEncryptedDelegate extends DatabaseDelegate {
|
||||||
FutureOr<bool> get isOpen => delegate.isOpen;
|
FutureOr<bool> get isOpen => delegate.isOpen;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> runBatched(BatchedStatements statements) {
|
Future<void> runBatched(BatchedStatements statements) => delegate.runBatched(statements);
|
||||||
return delegate.runBatched(statements);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> runCustom(String statement, List args) {
|
Future<void> runCustom(String statement, List args) => delegate.runCustom(statement, args);
|
||||||
return delegate.runCustom(statement, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<int> runInsert(String statement, List args) {
|
Future<int> runInsert(String statement, List args) => delegate.runInsert(statement, args);
|
||||||
return delegate.runInsert(statement, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<QueryResult> runSelect(String statement, List args) {
|
Future<QueryResult> runSelect(String statement, List args) => delegate.runSelect(statement, args);
|
||||||
return delegate.runSelect(statement, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<int> runUpdate(String statement, List args) {
|
Future<int> runUpdate(String statement, List args) => delegate.runUpdate(statement, args);
|
||||||
return delegate.runUpdate(statement, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
TransactionDelegate get transactionDelegate => delegate.transactionDelegate;
|
TransactionDelegate get transactionDelegate => delegate.transactionDelegate;
|
||||||
|
|
|
@ -128,9 +128,7 @@ abstract class FirebaseController {
|
||||||
var initializationSettingsAndroid =
|
var initializationSettingsAndroid =
|
||||||
AndroidInitializationSettings('notifications_icon');
|
AndroidInitializationSettings('notifications_icon');
|
||||||
var initializationSettingsIOS =
|
var initializationSettingsIOS =
|
||||||
IOSInitializationSettings(onDidReceiveLocalNotification: (i, a, b, c) {
|
IOSInitializationSettings(onDidReceiveLocalNotification: (i, a, b, c) => null);
|
||||||
return null;
|
|
||||||
});
|
|
||||||
var initializationSettings = InitializationSettings(
|
var initializationSettings = InitializationSettings(
|
||||||
android: initializationSettingsAndroid, iOS: initializationSettingsIOS);
|
android: initializationSettingsAndroid, iOS: initializationSettingsIOS);
|
||||||
await _flutterLocalNotificationsPlugin.initialize(initializationSettings,
|
await _flutterLocalNotificationsPlugin.initialize(initializationSettings,
|
||||||
|
|
|
@ -8,112 +8,90 @@ class MatrixLocals extends MatrixLocalizations {
|
||||||
MatrixLocals(this.l10n);
|
MatrixLocals(this.l10n);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String acceptedTheInvitation(String targetName) {
|
String acceptedTheInvitation(String targetName) =>
|
||||||
return l10n.acceptedTheInvitation(targetName);
|
l10n.acceptedTheInvitation(targetName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String activatedEndToEndEncryption(String senderName) {
|
String activatedEndToEndEncryption(String senderName) =>
|
||||||
return l10n.activatedEndToEndEncryption(senderName);
|
l10n.activatedEndToEndEncryption(senderName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String answeredTheCall(String senderName) {
|
String answeredTheCall(String senderName) => l10n.answeredTheCall(senderName);
|
||||||
return l10n.answeredTheCall(senderName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get anyoneCanJoin => l10n.anyoneCanJoin;
|
String get anyoneCanJoin => l10n.anyoneCanJoin;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String bannedUser(String senderName, String targetName) {
|
String bannedUser(String senderName, String targetName) =>
|
||||||
return l10n.bannedUser(senderName, targetName);
|
l10n.bannedUser(senderName, targetName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheChatAvatar(String senderName) {
|
String changedTheChatAvatar(String senderName) =>
|
||||||
return l10n.changedTheChatAvatar(senderName);
|
l10n.changedTheChatAvatar(senderName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheChatDescriptionTo(String senderName, String content) {
|
String changedTheChatDescriptionTo(String senderName, String content) =>
|
||||||
return l10n.changedTheChatDescriptionTo(senderName, content);
|
l10n.changedTheChatDescriptionTo(senderName, content);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheChatNameTo(String senderName, String content) {
|
String changedTheChatNameTo(String senderName, String content) =>
|
||||||
return l10n.changedTheChatNameTo(senderName, content);
|
l10n.changedTheChatNameTo(senderName, content);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheChatPermissions(String senderName) {
|
String changedTheChatPermissions(String senderName) =>
|
||||||
return l10n.changedTheChatPermissions(senderName);
|
l10n.changedTheChatPermissions(senderName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheDisplaynameTo(String targetName, String newDisplayname) {
|
String changedTheDisplaynameTo(String targetName, String newDisplayname) =>
|
||||||
return l10n.changedTheDisplaynameTo(targetName, newDisplayname);
|
l10n.changedTheDisplaynameTo(targetName, newDisplayname);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheGuestAccessRules(String senderName) {
|
String changedTheGuestAccessRules(String senderName) =>
|
||||||
return l10n.changedTheGuestAccessRules(senderName);
|
l10n.changedTheGuestAccessRules(senderName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheGuestAccessRulesTo(
|
String changedTheGuestAccessRulesTo(
|
||||||
String senderName, String localizedString) {
|
String senderName, String localizedString) =>
|
||||||
return l10n.changedTheGuestAccessRulesTo(senderName, localizedString);
|
l10n.changedTheGuestAccessRulesTo(senderName, localizedString);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheHistoryVisibility(String senderName) {
|
String changedTheHistoryVisibility(String senderName) =>
|
||||||
return l10n.changedTheHistoryVisibility(senderName);
|
l10n.changedTheHistoryVisibility(senderName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheHistoryVisibilityTo(
|
String changedTheHistoryVisibilityTo(
|
||||||
String senderName, String localizedString) {
|
String senderName, String localizedString) =>
|
||||||
return l10n.changedTheHistoryVisibilityTo(senderName, localizedString);
|
l10n.changedTheHistoryVisibilityTo(senderName, localizedString);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheJoinRules(String senderName) {
|
String changedTheJoinRules(String senderName) =>
|
||||||
return l10n.changedTheJoinRules(senderName);
|
l10n.changedTheJoinRules(senderName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheJoinRulesTo(String senderName, String localizedString) {
|
String changedTheJoinRulesTo(String senderName, String localizedString) =>
|
||||||
return l10n.changedTheJoinRulesTo(senderName, localizedString);
|
l10n.changedTheJoinRulesTo(senderName, localizedString);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheProfileAvatar(String targetName) {
|
String changedTheProfileAvatar(String targetName) =>
|
||||||
return l10n.changedTheProfileAvatar(targetName);
|
l10n.changedTheProfileAvatar(targetName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheRoomAliases(String senderName) {
|
String changedTheRoomAliases(String senderName) =>
|
||||||
return l10n.changedTheRoomAliases(senderName);
|
l10n.changedTheRoomAliases(senderName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String changedTheRoomInvitationLink(String senderName) {
|
String changedTheRoomInvitationLink(String senderName) =>
|
||||||
return l10n.changedTheRoomInvitationLink(senderName);
|
l10n.changedTheRoomInvitationLink(senderName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get channelCorruptedDecryptError => l10n.channelCorruptedDecryptError;
|
String get channelCorruptedDecryptError => l10n.channelCorruptedDecryptError;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String couldNotDecryptMessage(String errorText) {
|
String couldNotDecryptMessage(String errorText) =>
|
||||||
return l10n.couldNotDecryptMessage(errorText);
|
l10n.couldNotDecryptMessage(errorText);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String createdTheChat(String senderName) {
|
String createdTheChat(String senderName) => l10n.createdTheChat(senderName);
|
||||||
return l10n.createdTheChat(senderName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get emptyChat => l10n.emptyChat;
|
String get emptyChat => l10n.emptyChat;
|
||||||
|
@ -122,9 +100,7 @@ class MatrixLocals extends MatrixLocalizations {
|
||||||
String get encryptionNotEnabled => l10n.encryptionNotEnabled;
|
String get encryptionNotEnabled => l10n.encryptionNotEnabled;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String endedTheCall(String senderName) {
|
String endedTheCall(String senderName) => l10n.endedTheCall(senderName);
|
||||||
return l10n.endedTheCall(senderName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get fromJoining => l10n.fromJoining;
|
String get fromJoining => l10n.fromJoining;
|
||||||
|
@ -133,9 +109,7 @@ class MatrixLocals extends MatrixLocalizations {
|
||||||
String get fromTheInvitation => l10n.fromTheInvitation;
|
String get fromTheInvitation => l10n.fromTheInvitation;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String groupWith(String displayname) {
|
String groupWith(String displayname) => l10n.groupWith(displayname);
|
||||||
return l10n.groupWith(displayname);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get guestsAreForbidden => l10n.guestsAreForbidden;
|
String get guestsAreForbidden => l10n.guestsAreForbidden;
|
||||||
|
@ -144,32 +118,26 @@ class MatrixLocals extends MatrixLocalizations {
|
||||||
String get guestsCanJoin => l10n.guestsCanJoin;
|
String get guestsCanJoin => l10n.guestsCanJoin;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String hasWithdrawnTheInvitationFor(String senderName, String targetName) {
|
String hasWithdrawnTheInvitationFor(String senderName, String targetName) =>
|
||||||
return l10n.hasWithdrawnTheInvitationFor(senderName, targetName);
|
l10n.hasWithdrawnTheInvitationFor(senderName, targetName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String invitedUser(String senderName, String targetName) {
|
String invitedUser(String senderName, String targetName) =>
|
||||||
return l10n.invitedUser(senderName, targetName);
|
l10n.invitedUser(senderName, targetName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get invitedUsersOnly => l10n.invitedUsersOnly;
|
String get invitedUsersOnly => l10n.invitedUsersOnly;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String joinedTheChat(String targetName) {
|
String joinedTheChat(String targetName) => l10n.joinedTheChat(targetName);
|
||||||
return l10n.joinedTheChat(targetName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String kicked(String senderName, String targetName) {
|
String kicked(String senderName, String targetName) =>
|
||||||
return l10n.kicked(senderName, targetName);
|
l10n.kicked(senderName, targetName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String kickedAndBanned(String senderName, String targetName) {
|
String kickedAndBanned(String senderName, String targetName) =>
|
||||||
return l10n.kickedAndBanned(senderName, targetName);
|
l10n.kickedAndBanned(senderName, targetName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get needPantalaimonWarning => l10n.needPantalaimonWarning;
|
String get needPantalaimonWarning => l10n.needPantalaimonWarning;
|
||||||
|
@ -178,80 +146,56 @@ class MatrixLocals extends MatrixLocalizations {
|
||||||
String get noPermission => l10n.noPermission;
|
String get noPermission => l10n.noPermission;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String redactedAnEvent(String senderName) {
|
String redactedAnEvent(String senderName) => l10n.redactedAnEvent(senderName);
|
||||||
return l10n.redactedAnEvent(senderName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String rejectedTheInvitation(String targetName) {
|
String rejectedTheInvitation(String targetName) =>
|
||||||
return l10n.rejectedTheInvitation(targetName);
|
l10n.rejectedTheInvitation(targetName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String removedBy(String calcDisplayname) {
|
String removedBy(String calcDisplayname) => l10n.removedBy(calcDisplayname);
|
||||||
return l10n.removedBy(calcDisplayname);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get roomHasBeenUpgraded => l10n.roomHasBeenUpgraded;
|
String get roomHasBeenUpgraded => l10n.roomHasBeenUpgraded;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String sentAFile(String senderName) {
|
String sentAFile(String senderName) => l10n.sentAFile(senderName);
|
||||||
return l10n.sentAFile(senderName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String sentAPicture(String senderName) {
|
String sentAPicture(String senderName) => l10n.sentAPicture(senderName);
|
||||||
return l10n.sentAPicture(senderName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String sentASticker(String senderName) {
|
String sentASticker(String senderName) => l10n.sentASticker(senderName);
|
||||||
return l10n.sentASticker(senderName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String sentAVideo(String senderName) {
|
String sentAVideo(String senderName) => l10n.sentAVideo(senderName);
|
||||||
return l10n.sentAVideo(senderName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String sentAnAudio(String senderName) {
|
String sentAnAudio(String senderName) => l10n.sentAnAudio(senderName);
|
||||||
return l10n.sentAnAudio(senderName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String sentCallInformations(String senderName) {
|
String sentCallInformations(String senderName) =>
|
||||||
return l10n.sentCallInformations(senderName);
|
l10n.sentCallInformations(senderName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String sharedTheLocation(String senderName) {
|
String sharedTheLocation(String senderName) =>
|
||||||
return l10n.sharedTheLocation(senderName);
|
l10n.sharedTheLocation(senderName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String startedACall(String senderName) {
|
String startedACall(String senderName) => l10n.startedACall(senderName);
|
||||||
return l10n.startedACall(senderName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String unbannedUser(String senderName, String targetName) {
|
String unbannedUser(String senderName, String targetName) =>
|
||||||
return l10n.unbannedUser(senderName, targetName);
|
l10n.unbannedUser(senderName, targetName);
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get unknownEncryptionAlgorithm => l10n.unknownEncryptionAlgorithm;
|
String get unknownEncryptionAlgorithm => l10n.unknownEncryptionAlgorithm;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String unknownEvent(String typeKey) {
|
String unknownEvent(String typeKey) => l10n.unknownEvent(typeKey);
|
||||||
return l10n.unknownEvent(typeKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String userLeftTheChat(String targetName) {
|
String userLeftTheChat(String targetName) => l10n.userLeftTheChat(targetName);
|
||||||
return l10n.userLeftTheChat(targetName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get visibleForAllParticipants => l10n.visibleForAllParticipants;
|
String get visibleForAllParticipants => l10n.visibleForAllParticipants;
|
||||||
|
|
Loading…
Reference in a new issue