end method

  1. @override
Future<void> end(
  1. String id, {
  2. required LiveUpdateOutcome outcome,
  3. String? title,
  4. String? subtitle,
  5. IosLiveActivityOptions? ios,
})
override

Ends an existing live update.

Implementation

@override
Future<void> end(
  String id, {
  required LiveUpdateOutcome outcome,
  String? title,
  String? subtitle,
  IosLiveActivityOptions? ios,
}) {
  return methodChannel.invokeMethod<void>('end', <String, Object?>{
    'id': id,
    'outcome': outcome.name,
    'title': title,
    'subtitle': subtitle,
    'ios': ios?.toMap(),
  });
}