getActivityState method
Implementation
@override
Future<LiveActivityState?> getActivityState(String activityId) async {
final result = await methodChannel.invokeMethod<String?>(
'getActivityState',
{
'activityId': activityId,
},
);
return result != null ? LiveActivityState.values.byName(result) : null;
}