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,26 @@
import 'dart:async';
import 'package:${appName}${relative}/index.dart';
class ${upperName}Provider {
Future<List<${upperName}Model>?> fetchAsync(String? id) async {
// write logic here to send request to server
if (id == null) {
return null;
}
return [${upperName}Model(name: id)];
}
Future<List<${upperName}Model>?> addMore(List<${upperName}Model>? now) async {
// write logic here to send request to server
final result = [
...(now ?? <${upperName}Model>[]),
${upperName}Model(name: now?.length.toString() ?? '0')
];
return result;
}
}