getAllActivities method

  1. @override
Future<List<String>> getAllActivities()
override

Implementation

@override
Future<List<String>> getAllActivities() async {
  try {
    final String? data =
        await _methodChannel.invokeMethod<String>('getAllActivities');
    if (data == null) return <String>[];
    return data.split(',');
  } catch (e) {
    return <String>[];
  }
}