mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
633 B
21 lines
633 B
// Copyright 2021 The Flutter team. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import 'package:linting_tool/model/rule.dart';
|
|
import 'package:linting_tool/repository/api_provider.dart';
|
|
import 'package:http/http.dart' as http;
|
|
import 'package:yaml/yaml.dart';
|
|
|
|
class Repository {
|
|
late final APIProvider _apiProvider;
|
|
|
|
Repository(http.Client httpClient) {
|
|
_apiProvider = APIProvider(httpClient);
|
|
}
|
|
|
|
Future<List<Rule>> getRulesList() => _apiProvider.getRulesList();
|
|
|
|
Future<YamlMap> getTemplateFile() => _apiProvider.getTemplateFile();
|
|
}
|