mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
29 lines
575 B
Dart
29 lines
575 B
Dart
import 'package:equatable/equatable.dart';
|
|
|
|
abstract class LoginEvent extends Equatable {
|
|
const LoginEvent();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class LoginButtonPressed extends LoginEvent {
|
|
final String username;
|
|
final String password;
|
|
|
|
const LoginButtonPressed({required this.username, required this.password});
|
|
|
|
@override
|
|
List<Object> get props => [username, password];
|
|
}
|
|
|
|
|
|
class CheckBoxEvent extends LoginEvent {
|
|
final bool? newValue;
|
|
|
|
const CheckBoxEvent({required this.newValue,});
|
|
|
|
@override
|
|
List<Object> get props => [newValue!,];
|
|
}
|