temporal_js_polyfill 0.0.2
temporal_js_polyfill: ^0.0.2 copied to clipboard
Loads the TC39 Temporal polyfill for Dart web apps that need to support browsers without native Temporal. Injects temporal-polyfill into the page and resolves once the global Temporal object is availa [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add temporal_js_polyfillWith Flutter:
$ flutter pub add temporal_js_polyfillThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
temporal_js_polyfill: ^0.0.2Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:temporal_js_polyfill/temporal_js_polyfill.dart';