PerformanceHudController constructor

PerformanceHudController({
  1. bool visibleByDefault = false,
  2. PerformanceHudStorage? storage,
})

Creates a controller that persists its state through storage.

Implementation

PerformanceHudController({
  bool visibleByDefault = false,
  PerformanceHudStorage? storage,
})  : _isVisible = visibleByDefault,
      _storage = storage ?? SharedPreferencesHudStorage();