Todd Volkert aa9a115181
Move reporting files to reporting/ (#36017)
Slight cleanup of file locations in flutter_tools
to make it easier to see which files are responsible
for data reporting.
2019-07-16 13:21:06 -07:00

49 lines
1.0 KiB
Dart

// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'usage.dart';
class DisabledUsage implements Usage {
@override
bool get isFirstRun => false;
@override
bool get suppressAnalytics => true;
@override
set suppressAnalytics(bool value) { }
@override
bool get enabled => false;
@override
set enabled(bool value) { }
@override
String get clientId => null;
@override
void sendCommand(String command, { Map<String, String> parameters }) { }
@override
void sendEvent(String category, String parameter, { Map<String, String> parameters }) { }
@override
void sendTiming(String category, String variableName, Duration duration, { String label }) { }
@override
void sendException(dynamic exception) { }
@override
Stream<Map<String, dynamic>> get onSend => null;
@override
Future<void> ensureAnalyticsSent() => Future<void>.value();
@override
void printWelcome() { }
}