stopTimer static method

Future<void> stopTimer(
  1. String name
)

Stops timer started with Instrumentation.startTimer.

Method might throw Exception.

Implementation

static Future<void> stopTimer(String name) async {
  try {
    await channel.invokeMethod<void>('stopTimer', name);
  } on PlatformException catch (e) {
    throw Exception(e.details);
  }
}