Add AI text state
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
import 'package:core/core.dart';
|
||||||
|
import '../model/ai_response.dart';
|
||||||
|
|
||||||
|
class GenerateAITextLoading extends LoadingState {}
|
||||||
|
|
||||||
|
class GenerateAITextSuccess extends UIState {
|
||||||
|
final AIResponse response;
|
||||||
|
|
||||||
|
GenerateAITextSuccess(this.response);
|
||||||
|
|
||||||
|
@override
|
||||||
|
List<Object?> get props => [response];
|
||||||
|
}
|
||||||
|
|
||||||
|
class GenerateAITextFailure extends FeatureFailure {
|
||||||
|
GenerateAITextFailure(dynamic exception) : super(exception: exception);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user