handleOptimistic method
Handle optimistic update for interaction
Implementation
@override
Future<void> handleOptimistic(
String interactionId, InteractionDefinition interaction) async {
if (interaction is ShowFeedbackInteraction) {
await _handleShowFeedback(interaction);
} else if (interaction is DismissFeedbackInteraction) {
await _handleDismissFeedback(interaction);
}
}