File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff 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 });
You can’t perform that action at this time.
0 commit comments