Skip to content

Commit

Permalink
helpers nit: mark classes with only statics abstract final (#73)
Browse files Browse the repository at this point in the history
Fix some relative imports
  • Loading branch information
kevmoo authored Sep 19, 2023
1 parent b3d9a9b commit de13ffe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 0.2.1-wip

## 0.2.0-beta

- Added `helpers.dart` top-level library.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/helpers/enums.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// Helper layer library that exposes enums commonly used from `dart:html`.
library;

import '../../web.dart';
import '../dom/html.dart';

abstract final class KeyLocation {
// Note: this library uses legacy constant names for backwards compatibility.
Expand Down
4 changes: 2 additions & 2 deletions lib/src/helpers/events/providers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import 'dart:js_interop';
import 'dart:js_interop_unsafe';

import '../../../helpers.dart' show Device;
import '../../../web.dart';
import '../enums.dart' show Device;
import 'streams.dart';

/// Statically accessible `EventStreamProvider`s for all event types.
class EventStreamProviders {
abstract final class EventStreamProviders {
static const EventStreamProvider<ProgressEvent> abortEvent =
EventStreamProvider<ProgressEvent>('abort');

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: web
description: >-
Lightweight DOM and JS bindings built around JS static interop.
version: 0.2.0-beta
version: 0.2.1-wip

repository: https://github.com/dart-lang/web

Expand Down

0 comments on commit de13ffe

Please sign in to comment.