temporal_js_polyfill 0.0.1 copy "temporal_js_polyfill: ^0.0.1" to clipboard
temporal_js_polyfill: ^0.0.1 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_polyfill

With Flutter:

 $ flutter pub add temporal_js_polyfill

This 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.1

Alternatively, 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';
0
likes
130
points
148
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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 available. Pairs with package:temporal or package:temporal_js.

Repository (GitHub)
View/report issues

Topics

#date #time #temporal #web #polyfill

License

unknown (license)

Dependencies

web

More

Packages that depend on temporal_js_polyfill