sample_dart_sdk/lib/sdk/client_sdk.dart

28 lines
472 B
Dart
Raw Normal View History

2022-10-28 10:10:46 +07:00
import 'package:sample_sdk/sdk/services/category.dart';
import 'package:sample_sdk/sdk/services/product.dart';
class ClientSDK {
static var _instance;
static ClientSDK getInstance() {
if (_instance == null) {
ClientSDK();
}
return _instance;
}
ProductService productService = ProductService();
CategoryService categoryService = CategoryService();
ClientSDK() {
_instance = this;
}
void dispose() {
_instance = null;
}
}