configureForRuntime static method

void configureForRuntime(
  1. Runtime runtime
)

Implementation

static void configureForRuntime(Runtime runtime) {
  runtime.registerBridgeFunc(
      'dart:core', 'Duration.', const _$Duration_new().call);
  runtime.registerBridgeFunc(
      'dart:core', 'Duration.zero*g', const _$Duration_zero().call);
  runtime.registerBridgeFunc(
      'dart:core',
      'Duration.microsecondsPerMillisecond*g',
      (runtime, target, args) => $int(Duration.microsecondsPerMillisecond));
  runtime.registerBridgeFunc('dart:core', 'Duration.millisecondsPerSecond*g',
      (runtime, target, args) => $int(Duration.millisecondsPerSecond));
  runtime.registerBridgeFunc('dart:core', 'Duration.secondsPerMinute*g',
      (runtime, target, args) => $int(Duration.secondsPerMinute));
  runtime.registerBridgeFunc('dart:core', 'Duration.minutesPerHour*g',
      (runtime, target, args) => $int(Duration.minutesPerHour));
  runtime.registerBridgeFunc('dart:core', 'Duration.hoursPerDay*g',
      (runtime, target, args) => $int(Duration.hoursPerDay));
}