fix: apply dart format

This commit is contained in:
Malo Léon 2023-08-24 18:08:18 +02:00 committed by Hugo Pointcheval
parent cc41b7b589
commit 227158725d
16 changed files with 14 additions and 24 deletions

View File

@ -33,7 +33,7 @@ class AuthenticationMockCacheDataSourceImpl<Data>
Future<Account?> getCachedAccount() async { Future<Account?> getCachedAccount() async {
await Future<void>.delayed(const Duration(milliseconds: 200)); await Future<void>.delayed(const Duration(milliseconds: 200));
return null; return null;
} }
@override @override

View File

@ -53,7 +53,8 @@ class DefaultFirebaseOptions {
messagingSenderId: '100151285458', messagingSenderId: '100151285458',
projectId: 'wyatt-notification-example', projectId: 'wyatt-notification-example',
storageBucket: 'wyatt-notification-example.appspot.com', storageBucket: 'wyatt-notification-example.appspot.com',
iosClientId: '100151285458-a9notq1k1padf0vk9ove8ll3amjgi7mn.apps.googleusercontent.com', iosClientId:
'100151285458-a9notq1k1padf0vk9ove8ll3amjgi7mn.apps.googleusercontent.com',
iosBundleId: 'com.example.notificationBlocExample', iosBundleId: 'com.example.notificationBlocExample',
); );
} }

View File

@ -22,7 +22,6 @@ import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_me
import 'package:wyatt_type_utils/wyatt_type_utils.dart'; import 'package:wyatt_type_utils/wyatt_type_utils.dart';
class CloudMessagingRepositoryImpl extends CloudMessagingRepository { class CloudMessagingRepositoryImpl extends CloudMessagingRepository {
CloudMessagingRepositoryImpl({ CloudMessagingRepositoryImpl({
required CloudMessagingRemoteDataSource notificationRemoteDataSource, required CloudMessagingRemoteDataSource notificationRemoteDataSource,
}) : _notificationRemoteDataSource = notificationRemoteDataSource; }) : _notificationRemoteDataSource = notificationRemoteDataSource;

View File

@ -18,7 +18,6 @@ import 'package:wyatt_architecture/wyatt_architecture.dart';
import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart'; import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart';
class GetCloudMessagingTokenUseCase extends AsyncUseCase<void, String?> { class GetCloudMessagingTokenUseCase extends AsyncUseCase<void, String?> {
GetCloudMessagingTokenUseCase({ GetCloudMessagingTokenUseCase({
required CloudMessagingRepository notificationRepository, required CloudMessagingRepository notificationRepository,
}) : _notificationRepository = notificationRepository; }) : _notificationRepository = notificationRepository;

View File

@ -18,7 +18,6 @@ import 'package:wyatt_architecture/wyatt_architecture.dart';
import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart'; import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart';
class InitCloudmessagingUseCase extends AsyncUseCase<NoParam, void> { class InitCloudmessagingUseCase extends AsyncUseCase<NoParam, void> {
InitCloudmessagingUseCase({ InitCloudmessagingUseCase({
required CloudMessagingRepository notificationRepository, required CloudMessagingRepository notificationRepository,
}) : _notificationRepository = notificationRepository; }) : _notificationRepository = notificationRepository;

View File

@ -25,7 +25,6 @@ import 'package:wyatt_type_utils/wyatt_type_utils.dart';
class ListenNotificationUseCase class ListenNotificationUseCase
extends StreamUseCase<NoParam, RemoteNotification> { extends StreamUseCase<NoParam, RemoteNotification> {
ListenNotificationUseCase({ ListenNotificationUseCase({
required CloudMessagingRepository notificationRepository, required CloudMessagingRepository notificationRepository,
}) : _notificationRepository = notificationRepository; }) : _notificationRepository = notificationRepository;

View File

@ -18,7 +18,6 @@ import 'package:wyatt_architecture/wyatt_architecture.dart';
import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart'; import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart';
class RequestCloudMessagingPermissionUseCase extends AsyncUseCase<void, void> { class RequestCloudMessagingPermissionUseCase extends AsyncUseCase<void, void> {
RequestCloudMessagingPermissionUseCase({ RequestCloudMessagingPermissionUseCase({
required CloudMessagingRepository notificationRepository, required CloudMessagingRepository notificationRepository,
}) : _notificationRepository = notificationRepository; }) : _notificationRepository = notificationRepository;

View File

@ -20,7 +20,6 @@ import 'package:wyatt_architecture/wyatt_architecture.dart';
import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart'; import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart';
class SubscribeToNotificationTopicUseCase extends AsyncUseCase<String, void> { class SubscribeToNotificationTopicUseCase extends AsyncUseCase<String, void> {
SubscribeToNotificationTopicUseCase({ SubscribeToNotificationTopicUseCase({
required CloudMessagingRepository notificationRepository, required CloudMessagingRepository notificationRepository,
}) : _notificationRepository = notificationRepository; }) : _notificationRepository = notificationRepository;

View File

@ -21,7 +21,6 @@ import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_me
class UnsubscribeFromNotificationTopicUseCase class UnsubscribeFromNotificationTopicUseCase
extends AsyncUseCase<String, void> { extends AsyncUseCase<String, void> {
UnsubscribeFromNotificationTopicUseCase({ UnsubscribeFromNotificationTopicUseCase({
required CloudMessagingRepository notificationRepository, required CloudMessagingRepository notificationRepository,
}) : _notificationRepository = notificationRepository; }) : _notificationRepository = notificationRepository;

View File

@ -17,7 +17,6 @@
part of 'cloud_messaging_cubit.dart'; part of 'cloud_messaging_cubit.dart';
class CloudmessagingState extends Equatable { class CloudmessagingState extends Equatable {
const CloudmessagingState([this.remoteNotification]); const CloudmessagingState([this.remoteNotification]);
final RemoteNotification? remoteNotification; final RemoteNotification? remoteNotification;

View File

@ -33,8 +33,7 @@ class CrudFirestoreDataSourceImpl<Model extends ObjectModel, Entity>
required Model Function( required Model Function(
DocumentSnapshot<Map<String, dynamic>>, DocumentSnapshot<Map<String, dynamic>>,
SnapshotOptions?, SnapshotOptions?,
) ) fromFirestore,
fromFirestore,
/// The function that converts a [Model] to a [Map<String, Object?>]. /// The function that converts a [Model] to a [Map<String, Object?>].
required Map<String, Object?> Function(Model, SetOptions?) toFirestore, required Map<String, Object?> Function(Model, SetOptions?) toFirestore,

View File

@ -26,9 +26,8 @@ class FormDifference extends FormOperation {
@override @override
WyattForm call(WyattForm a, WyattForm b) { WyattForm call(WyattForm a, WyattForm b) {
final inputs = < final inputs = <FormInput<dynamic,
FormInput<dynamic, FormInputValidator<dynamic, ValidationError>, FormInputValidator<dynamic, ValidationError>, dynamic>>[];
dynamic>>[];
for (final i in a.inputs) { for (final i in a.inputs) {
if (!b.containsKey(i.key)) { if (!b.containsKey(i.key)) {

View File

@ -26,9 +26,8 @@ class FormIntersection extends FormOperation {
@override @override
WyattForm call(WyattForm a, WyattForm b) { WyattForm call(WyattForm a, WyattForm b) {
final inputs = < final inputs = <FormInput<dynamic,
FormInput<dynamic, FormInputValidator<dynamic, ValidationError>, FormInputValidator<dynamic, ValidationError>, dynamic>>[];
dynamic>>[];
for (final i in a.inputs) { for (final i in a.inputs) {
if (b.containsKey(i.key)) { if (b.containsKey(i.key)) {

View File

@ -26,9 +26,8 @@ class FormUnion extends FormOperation {
@override @override
WyattForm call(WyattForm a, WyattForm b) { WyattForm call(WyattForm a, WyattForm b) {
final inputs = < final inputs = <FormInput<dynamic,
FormInput<dynamic, FormInputValidator<dynamic, ValidationError>, FormInputValidator<dynamic, ValidationError>, dynamic>>[];
dynamic>>[];
for (final i in a.inputs) { for (final i in a.inputs) {
inputs.add(i); inputs.add(i);

View File

@ -178,7 +178,8 @@ class CardWrapper extends StatelessWidget {
Theme.of(context) Theme.of(context)
.extension<CardThemeExtension>() .extension<CardThemeExtension>()
?.backgroundColors, ?.backgroundColors,
CardThemeExtensionDefault.from(Theme.of(context)).backgroundColors, CardThemeExtensionDefault.from(Theme.of(context))
.backgroundColors,
], ],
valueValidator: (multiColor) => multiColor?.isGradient, valueValidator: (multiColor) => multiColor?.isGradient,
transform: (multiColor) => transform: (multiColor) =>