mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-26 03:32:39 +03:00
25 lines
736 B
Dart
Executable File
25 lines
736 B
Dart
Executable File
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:yubico_authenticator/management/models.dart';
|
|
|
|
import '../app/models.dart';
|
|
import '../core/state.dart';
|
|
|
|
final managementStateProvider = StateNotifierProvider.autoDispose
|
|
.family<ManagementStateNotifier, AsyncValue<DeviceInfo>, DevicePath>(
|
|
(ref, devicePath) => throw UnimplementedError(),
|
|
);
|
|
|
|
abstract class ManagementStateNotifier
|
|
extends ApplicationStateNotifier<DeviceInfo> {
|
|
Future<void> writeConfig(DeviceConfig config,
|
|
{String currentLockCode = '',
|
|
String newLockCode = '',
|
|
bool reboot = false});
|
|
|
|
Future<void> setMode({
|
|
required int interfaces,
|
|
int challengeResponseTimeout = 0,
|
|
int? autoEjectTimeout,
|
|
});
|
|
}
|