mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-17 22:29:15 +00:00
22 lines
539 B
Dart
22 lines
539 B
Dart
|
import 'package:selfprivacy/logic/api_maps/generic_result.dart';
|
||
|
|
||
|
class CallbackDialogueBranching {
|
||
|
CallbackDialogueBranching({
|
||
|
required this.title,
|
||
|
required this.description,
|
||
|
required this.choices,
|
||
|
});
|
||
|
final String title;
|
||
|
final String description;
|
||
|
final List<CallbackDialogueChoice> choices;
|
||
|
}
|
||
|
|
||
|
class CallbackDialogueChoice {
|
||
|
CallbackDialogueChoice({
|
||
|
required this.title,
|
||
|
required this.callback,
|
||
|
});
|
||
|
final String title;
|
||
|
final Future<GenericResult<CallbackDialogueBranching?>> Function()? callback;
|
||
|
}
|