selfprivacy.org.app/lib/logic/models/callback_dialogue_branching.dart

22 lines
539 B
Dart
Raw Normal View History

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;
}