getInteractionEvents method
Get all interaction events for a widget
Implementation
@override
Future<List<InteractionEvent>> getInteractionEvents(String widgetId) async {
await _ensureInitialized();
final jsonStrings =
_prefs.getStringList('$_interactionEventPrefix$widgetId') ?? [];
return jsonStrings
.map((jsonString) => InteractionEvent.fromJson(jsonDecode(jsonString)))
.toList();
}