listAll method
Lists all Live Updates. @returns A Future with the result.
Implementation
Future<List<LiveUpdate>> listAll() async {
try {
final result = await _module.channel.invokeMethod('liveUpdate#listAll');
if (result is List) {
return result.map((item) => LiveUpdate.fromJson(item)).toList();
}
throw FormatException(
'Invalid result format: expected a List, got ${result.runtimeType}');
} catch (e) {
print('Error listing all live updates: $e');
rethrow;
}
}