saveProfile method

  1. @override
Future<void> saveProfile(
  1. FocusProfile profile
)
override

Saves the current profile.

Implementation

@override
Future<void> saveProfile(FocusProfile profile) async {
  final box = await _openBox;
  await box.put(_profileKey, profile.toJson());
}