web 0.5.1 copy "web: ^0.5.1" to clipboard
web: ^0.5.1 copied to clipboard

Platformweb

Lightweight browser API bindings built around JS static interop.

example/example.dart

// Copyright (c) 2023, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:web/web.dart';

void main() {
  final div = document.querySelector('div')!;
  div.text = 'Text set at ${DateTime.now()}';
}
81
likes
115
pub points
100%
popularity

Publisher

verified publisherdart.dev

Lightweight browser API bindings built around JS static interop.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on web