resume method

Future<void> resume()

Resumes a context the autoplay policy or suspend stopped. Safe to call at any time; call it from a user gesture if isRunning is false.

Implementation

Future<void> resume() async {
  try {
    await _context.resume().toDart;
  } on Object {
    // Still suspended; the caller can retry from a gesture.
  }
}