configureForRuntime static method
void
configureForRuntime(
- Runtime runtime
)
Configure the $DateTime class for runtime with a Runtime
Implementation
static void configureForRuntime(Runtime runtime) {
runtime.registerBridgeFunc('dart:core', 'DateTime.now',
(runtime, target, args) => $DateTime.wrap(DateTime.now()));
runtime.registerBridgeFunc('dart:core', 'DateTime.', $new);
runtime.registerBridgeFunc('dart:core', 'DateTime.parse', $parse);
runtime.registerBridgeFunc('dart:core', 'DateTime.tryParse', $tryParse);
}