API Table Investasi Admin

This commit is contained in:
2025-02-04 22:35:44 +08:00
parent 257c1ebaad
commit c53ca6d355
40 changed files with 1737 additions and 378 deletions

View File

@@ -0,0 +1,42 @@
import 'package:equatable/equatable.dart';
abstract class ${upperName}State extends Equatable {
${upperName}State();
@override
List<Object> get props => [];
}
/// UnInitialized
class Un${upperName}State extends ${upperName}State {
Un${upperName}State();
@override
String toString() => 'Un${upperName}State';
}
/// Initialized
class In${upperName}State extends ${upperName}State {
In${upperName}State(this.hello);
final String hello;
@override
String toString() => 'In${upperName}State $hello';
@override
List<Object> get props => [hello];
}
class Error${upperName}State extends ${upperName}State {
Error${upperName}State(this.errorMessage);
final String errorMessage;
@override
String toString() => 'Error${upperName}State';
@override
List<Object> get props => [errorMessage];
}