start method

  1. @override
Future<LiveUpdateHandle> start(
  1. LiveUpdateContent content
)
override

Starts a live update.

Implementation

@override
Future<LiveUpdateHandle> start(LiveUpdateContent content) async {
  final response = await methodChannel.invokeMapMethod<Object?, Object?>(
    'start',
    content.toMap(),
  );
  return LiveUpdateHandle.fromMap(
    response ?? <Object?, Object?>{'id': content.id},
  );
}