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

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') as HTMLDivElement;
  div.text = 'Text set at ${DateTime.now()}';
}
97
likes
0
pub points
99%
popularity

Publisher

verified publisherdart.dev

Lightweight browser API bindings built around JS static interop.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on web