feat: Add library directive to multiple BLoC and service files for improved organization
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
/// ```dart
|
||||
/// accountBloc.close();
|
||||
/// ```
|
||||
library;
|
||||
import 'dart:async';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:travel_mate/services/error_service.dart';
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
/// instances. Subclasses should provide the relevant properties by
|
||||
/// overriding `props` so that the bloc can correctly determine whether
|
||||
/// the state has changed.
|
||||
library;
|
||||
|
||||
/// Represents the initial state of the account feature.
|
||||
///
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
/// - [AuthAppleSignInRequested]: Processes Apple authentication
|
||||
/// - [AuthSignOutRequested]: Processes user sign-out
|
||||
/// - [AuthPasswordResetRequested]: Processes password reset requests
|
||||
library;
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import '../../repositories/auth_repository.dart';
|
||||
import 'auth_event.dart';
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
/// amount: 50.0,
|
||||
/// ));
|
||||
/// ```
|
||||
library;
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import '../../repositories/balance_repository.dart';
|
||||
import '../../repositories/expense_repository.dart';
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
/// members: [member1, member2],
|
||||
/// ));
|
||||
/// ```
|
||||
library;
|
||||
import 'dart:async';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:travel_mate/services/error_service.dart';
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
///
|
||||
/// All events extend [GroupEvent] and implement [Equatable] for proper
|
||||
/// equality comparison in the BLoC pattern.
|
||||
library;
|
||||
import 'package:equatable/equatable.dart';
|
||||
import '../../models/group.dart';
|
||||
import '../../models/group_member.dart';
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
///
|
||||
/// All states extend [GroupState] and implement [Equatable] for proper
|
||||
/// equality comparison and state change detection in the BLoC pattern.
|
||||
library;
|
||||
import 'package:equatable/equatable.dart';
|
||||
import '../../models/group.dart';
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
/// reaction: '👍',
|
||||
/// ));
|
||||
/// ```
|
||||
library;
|
||||
import 'dart:async';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import '../../models/message.dart';
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
///
|
||||
/// All events extend [MessageEvent] and implement [Equatable] for proper
|
||||
/// equality comparison in the BLoC pattern.
|
||||
library;
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
/// Base class for all message-related events.
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
///
|
||||
/// All states extend [MessageState] and implement [Equatable] for proper
|
||||
/// equality comparison and state change detection in the BLoC pattern.
|
||||
library;
|
||||
import 'package:equatable/equatable.dart';
|
||||
import '../../models/message.dart';
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
/// // Delete a trip
|
||||
/// tripBloc.add(TripDeleteRequested(tripId: 'tripId456'));
|
||||
/// ```
|
||||
library;
|
||||
import 'dart:async';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:travel_mate/models/trip.dart';
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
///
|
||||
/// All events extend [TripEvent] and implement [Equatable] for proper
|
||||
/// equality comparison in the BLoC pattern.
|
||||
library;
|
||||
import 'package:equatable/equatable.dart';
|
||||
import '../../models/trip.dart';
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
///
|
||||
/// All states extend [TripState] and implement [Equatable] for proper
|
||||
/// equality comparison and state change detection in the BLoC pattern.
|
||||
library;
|
||||
import 'package:equatable/equatable.dart';
|
||||
import '../../models/trip.dart';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user