Skip to content

Commit 9836919

Browse files
Fffffffffffffffffffffformat
1 parent 506efc5 commit 9836919

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/src/react_client/event_helpers.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ extension SafeNativeDataTransfer on MouseEvent {
838838
/// Unexpected null value encountered in Dart web platform libraries.
839839
/// ```
840840
///
841-
/// This extension is used will catch the error within our [wrapNativeMouseEvent] function so that
841+
/// This extension is used to catch the error within our [wrapNativeMouseEvent] function so that
842842
/// `SyntheticMouseEvent`s do not throw the null exception.
843843
@internal
844844
DataTransfer? get safeDataTransfer {
@@ -848,4 +848,4 @@ extension SafeNativeDataTransfer on MouseEvent {
848848
} catch (_) {}
849849
return dataTransfer;
850850
}
851-
}
851+
}

test/react_client/event_helpers_test.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -2108,7 +2108,8 @@ main() {
21082108

21092109
// See: `SafeNativeDataTransfer` extension
21102110
group('SafeNativeDataTransfer MouseEvent extension', () {
2111-
test('prevents faulty Dart SDK web platform null exceptions when '
2111+
test(
2112+
'prevents faulty Dart SDK web platform null exceptions when '
21122113
'accessing the `dataTransfer` getter on a manually constructed MouseEvent', () {
21132114
expect(() => wrapNativeMouseEvent(MouseEvent('click')).dataTransfer, returnsNormally);
21142115
});

0 commit comments

Comments
 (0)