You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
529 B

import 'package:freezed_annotation/freezed_annotation.dart';
part 'player_matching_state.freezed.dart';
@freezed
class PlayerMatchingState with _$PlayerMatchingState {
const factory PlayerMatchingState() = PlayerMatchingIdle;
const factory PlayerMatchingState.processing() = PlayerMatchingProcessing;
const factory PlayerMatchingState.isMatched(String id) = PlayerMatched;
const factory PlayerMatchingState.isQueued() = PlayerQueue;
const factory PlayerMatchingState.error({String? message}) = PlayerMatchingError;
}