blob: a45ebdae2799306aa451e15d4768610633a9a8b1 [file]
// Copyright 2024 The Flutter Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
import 'file_system.dart';
/// Provides access to the local Flutter store (~/.flutter).
class FlutterStore {
static const storeName = '.flutter';
static const firstRunKey = 'firstRun';
static const gaEnabledKey = 'enabled';
static const flutterClientIdKey = 'clientId';
final properties = IOPersistentProperties(storeName);
bool get isFirstRun => properties[firstRunKey] == true;
bool get gaEnabled => properties[gaEnabledKey] == true;
String get flutterClientId =>
(properties[flutterClientIdKey] as String?) ?? '';
}