mirror of
https://github.com/flutter/samples.git
synced 2026-04-30 11:36:35 +00:00
[linting_tool] Implement saving rules to DB (#860)
This commit is contained in:
committed by
GitHub
parent
1818925286
commit
bbb8e342f1
@@ -4,9 +4,14 @@
|
||||
|
||||
import 'package:linting_tool/model/rule.dart';
|
||||
import 'package:linting_tool/repository/api_provider.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
class Repository {
|
||||
final _apiProvider = APIProvider();
|
||||
late final APIProvider _apiProvider;
|
||||
|
||||
Repository(http.Client httpClient) {
|
||||
_apiProvider = APIProvider(httpClient);
|
||||
}
|
||||
|
||||
Future<List<Rule>> getRulesList() => _apiProvider.getRulesList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user