File tree 2 files changed +4
-3
lines changed
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 {
838
838
/// Unexpected null value encountered in Dart web platform libraries.
839
839
/// ```
840
840
///
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
842
842
/// `SyntheticMouseEvent` s do not throw the null exception.
843
843
@internal
844
844
DataTransfer ? get safeDataTransfer {
@@ -848,4 +848,4 @@ extension SafeNativeDataTransfer on MouseEvent {
848
848
} catch (_) {}
849
849
return dataTransfer;
850
850
}
851
- }
851
+ }
Original file line number Diff line number Diff line change @@ -2108,7 +2108,8 @@ main() {
2108
2108
2109
2109
// See: `SafeNativeDataTransfer` extension
2110
2110
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 '
2112
2113
'accessing the `dataTransfer` getter on a manually constructed MouseEvent' , () {
2113
2114
expect (() => wrapNativeMouseEvent (MouseEvent ('click' )).dataTransfer, returnsNormally);
2114
2115
});
You can’t perform that action at this time.
0 commit comments