WT1.1.11 Null-Safe migration
This commit is contained in:
@@ -13,7 +13,7 @@ part 'session_state.dart';
|
||||
class SessionBloc extends Bloc<SessionEvent, SessionState> with Logging {
|
||||
final Session session;
|
||||
|
||||
SessionBloc({this.session}) : super(SessionInitial());
|
||||
SessionBloc({required this.session}) : super(SessionInitial());
|
||||
|
||||
@override
|
||||
Stream<SessionState> mapEventToState(
|
||||
|
||||
@@ -9,7 +9,7 @@ abstract class SessionEvent extends Equatable {
|
||||
|
||||
class SessionStart extends SessionEvent {
|
||||
final SettingsBloc settingsBloc;
|
||||
const SessionStart({this.settingsBloc});
|
||||
const SessionStart({required this.settingsBloc});
|
||||
|
||||
@override
|
||||
List<Object> get props => [settingsBloc];
|
||||
|
||||
@@ -21,7 +21,7 @@ class SessionReady extends SessionState {
|
||||
|
||||
class SessionFailure extends SessionState {
|
||||
final String message;
|
||||
const SessionFailure({this.message});
|
||||
const SessionFailure({required this.message});
|
||||
|
||||
@override
|
||||
List<Object> get props => [message];
|
||||
|
||||
Reference in New Issue
Block a user