Skip to content

Commit a7a77f5

Browse files
Fix lint / format
1 parent bce5661 commit a7a77f5

File tree

3 files changed

+52
-3
lines changed

3 files changed

+52
-3
lines changed

example/test/react_test_components.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ class _ClockComponent extends react.Component {
129129

130130
@override
131131
render() {
132-
return react.span({'onClick': (event) => print('Hello World!')},
132+
return react.span(
133+
{'onClick': (event) => print('Hello World!')},
133134
// { 'onClick': (event, [domid = null]) => print("Hello World!") },
134135
['Seconds elapsed: ', "${state['secondsElapsed']}"]);
135136
}

lib/react.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export 'package:react/src/react_client/event_helpers.dart';
2424
export 'package:react/react_client/react_interop.dart' show forwardRef2, createRef, memo2;
2525
export 'package:react/src/react_client/synthetic_event_wrappers.dart' hide NonNativeDataTransfer;
2626
export 'package:react/src/react_client/synthetic_data_transfer.dart' show SyntheticDataTransfer;
27-
export 'package:react/src/react_client/event_helpers.dart';
2827

2928
/// A React component declared using a function that takes in [props] and returns rendered output.
3029
///

test/mockito.mocks.dart

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Mocks generated by Mockito 5.4.0 from annotations
1+
// Mocks generated by Mockito 5.4.2 from annotations
22
// in react/test/mockito.dart.
33
// Do not manually edit this file.
44

@@ -61,42 +61,49 @@ class MockKeyboardEvent extends _i1.Mock implements _i2.KeyboardEvent {
6161
returnValue: 0,
6262
returnValueForMissingStub: 0,
6363
) as int);
64+
6465
@override
6566
int get charCode => (super.noSuchMethod(
6667
Invocation.getter(#charCode),
6768
returnValue: 0,
6869
returnValueForMissingStub: 0,
6970
) as int);
71+
7072
@override
7173
bool get altKey => (super.noSuchMethod(
7274
Invocation.getter(#altKey),
7375
returnValue: false,
7476
returnValueForMissingStub: false,
7577
) as bool);
78+
7679
@override
7780
bool get ctrlKey => (super.noSuchMethod(
7881
Invocation.getter(#ctrlKey),
7982
returnValue: false,
8083
returnValueForMissingStub: false,
8184
) as bool);
85+
8286
@override
8387
int get location => (super.noSuchMethod(
8488
Invocation.getter(#location),
8589
returnValue: 0,
8690
returnValueForMissingStub: 0,
8791
) as int);
92+
8893
@override
8994
bool get metaKey => (super.noSuchMethod(
9095
Invocation.getter(#metaKey),
9196
returnValue: false,
9297
returnValueForMissingStub: false,
9398
) as bool);
99+
94100
@override
95101
bool get shiftKey => (super.noSuchMethod(
96102
Invocation.getter(#shiftKey),
97103
returnValue: false,
98104
returnValueForMissingStub: false,
99105
) as bool);
106+
100107
@override
101108
_i2.Element get matchingTarget => (super.noSuchMethod(
102109
Invocation.getter(#matchingTarget),
@@ -109,30 +116,35 @@ class MockKeyboardEvent extends _i1.Mock implements _i2.KeyboardEvent {
109116
Invocation.getter(#matchingTarget),
110117
),
111118
) as _i2.Element);
119+
112120
@override
113121
List<_i2.EventTarget> get path => (super.noSuchMethod(
114122
Invocation.getter(#path),
115123
returnValue: <_i2.EventTarget>[],
116124
returnValueForMissingStub: <_i2.EventTarget>[],
117125
) as List<_i2.EventTarget>);
126+
118127
@override
119128
bool get defaultPrevented => (super.noSuchMethod(
120129
Invocation.getter(#defaultPrevented),
121130
returnValue: false,
122131
returnValueForMissingStub: false,
123132
) as bool);
133+
124134
@override
125135
int get eventPhase => (super.noSuchMethod(
126136
Invocation.getter(#eventPhase),
127137
returnValue: 0,
128138
returnValueForMissingStub: 0,
129139
) as int);
140+
130141
@override
131142
String get type => (super.noSuchMethod(
132143
Invocation.getter(#type),
133144
returnValue: '',
134145
returnValueForMissingStub: '',
135146
) as String);
147+
136148
@override
137149
bool getModifierState(String? keyArg) => (super.noSuchMethod(
138150
Invocation.method(
@@ -142,6 +154,7 @@ class MockKeyboardEvent extends _i1.Mock implements _i2.KeyboardEvent {
142154
returnValue: false,
143155
returnValueForMissingStub: false,
144156
) as bool);
157+
145158
@override
146159
List<_i2.EventTarget> composedPath() => (super.noSuchMethod(
147160
Invocation.method(
@@ -151,6 +164,7 @@ class MockKeyboardEvent extends _i1.Mock implements _i2.KeyboardEvent {
151164
returnValue: <_i2.EventTarget>[],
152165
returnValueForMissingStub: <_i2.EventTarget>[],
153166
) as List<_i2.EventTarget>);
167+
154168
@override
155169
void preventDefault() => super.noSuchMethod(
156170
Invocation.method(
@@ -159,6 +173,7 @@ class MockKeyboardEvent extends _i1.Mock implements _i2.KeyboardEvent {
159173
),
160174
returnValueForMissingStub: null,
161175
);
176+
162177
@override
163178
void stopImmediatePropagation() => super.noSuchMethod(
164179
Invocation.method(
@@ -167,6 +182,7 @@ class MockKeyboardEvent extends _i1.Mock implements _i2.KeyboardEvent {
167182
),
168183
returnValueForMissingStub: null,
169184
);
185+
170186
@override
171187
void stopPropagation() => super.noSuchMethod(
172188
Invocation.method(
@@ -189,6 +205,7 @@ class MockDataTransfer extends _i1.Mock implements _i2.DataTransfer {
189205
),
190206
returnValueForMissingStub: null,
191207
);
208+
192209
@override
193210
set effectAllowed(String? value) => super.noSuchMethod(
194211
Invocation.setter(
@@ -197,6 +214,7 @@ class MockDataTransfer extends _i1.Mock implements _i2.DataTransfer {
197214
),
198215
returnValueForMissingStub: null,
199216
);
217+
200218
@override
201219
void clearData([String? format]) => super.noSuchMethod(
202220
Invocation.method(
@@ -205,6 +223,7 @@ class MockDataTransfer extends _i1.Mock implements _i2.DataTransfer {
205223
),
206224
returnValueForMissingStub: null,
207225
);
226+
208227
@override
209228
String getData(String? format) => (super.noSuchMethod(
210229
Invocation.method(
@@ -214,6 +233,7 @@ class MockDataTransfer extends _i1.Mock implements _i2.DataTransfer {
214233
returnValue: '',
215234
returnValueForMissingStub: '',
216235
) as String);
236+
217237
@override
218238
void setData(
219239
String? format,
@@ -229,6 +249,7 @@ class MockDataTransfer extends _i1.Mock implements _i2.DataTransfer {
229249
),
230250
returnValueForMissingStub: null,
231251
);
252+
232253
@override
233254
void setDragImage(
234255
_i2.Element? image,
@@ -258,30 +279,35 @@ class MockMouseEvent extends _i1.Mock implements _i2.MouseEvent {
258279
returnValue: false,
259280
returnValueForMissingStub: false,
260281
) as bool);
282+
261283
@override
262284
int get button => (super.noSuchMethod(
263285
Invocation.getter(#button),
264286
returnValue: 0,
265287
returnValueForMissingStub: 0,
266288
) as int);
289+
267290
@override
268291
bool get ctrlKey => (super.noSuchMethod(
269292
Invocation.getter(#ctrlKey),
270293
returnValue: false,
271294
returnValueForMissingStub: false,
272295
) as bool);
296+
273297
@override
274298
bool get metaKey => (super.noSuchMethod(
275299
Invocation.getter(#metaKey),
276300
returnValue: false,
277301
returnValueForMissingStub: false,
278302
) as bool);
303+
279304
@override
280305
bool get shiftKey => (super.noSuchMethod(
281306
Invocation.getter(#shiftKey),
282307
returnValue: false,
283308
returnValueForMissingStub: false,
284309
) as bool);
310+
285311
@override
286312
_i3.Point<num> get client => (super.noSuchMethod(
287313
Invocation.getter(#client),
@@ -294,6 +320,7 @@ class MockMouseEvent extends _i1.Mock implements _i2.MouseEvent {
294320
Invocation.getter(#client),
295321
),
296322
) as _i3.Point<num>);
323+
297324
@override
298325
_i3.Point<num> get movement => (super.noSuchMethod(
299326
Invocation.getter(#movement),
@@ -306,6 +333,7 @@ class MockMouseEvent extends _i1.Mock implements _i2.MouseEvent {
306333
Invocation.getter(#movement),
307334
),
308335
) as _i3.Point<num>);
336+
309337
@override
310338
_i3.Point<num> get offset => (super.noSuchMethod(
311339
Invocation.getter(#offset),
@@ -318,6 +346,7 @@ class MockMouseEvent extends _i1.Mock implements _i2.MouseEvent {
318346
Invocation.getter(#offset),
319347
),
320348
) as _i3.Point<num>);
349+
321350
@override
322351
_i3.Point<num> get screen => (super.noSuchMethod(
323352
Invocation.getter(#screen),
@@ -330,6 +359,7 @@ class MockMouseEvent extends _i1.Mock implements _i2.MouseEvent {
330359
Invocation.getter(#screen),
331360
),
332361
) as _i3.Point<num>);
362+
333363
@override
334364
_i3.Point<num> get layer => (super.noSuchMethod(
335365
Invocation.getter(#layer),
@@ -342,6 +372,7 @@ class MockMouseEvent extends _i1.Mock implements _i2.MouseEvent {
342372
Invocation.getter(#layer),
343373
),
344374
) as _i3.Point<num>);
375+
345376
@override
346377
_i3.Point<num> get page => (super.noSuchMethod(
347378
Invocation.getter(#page),
@@ -354,6 +385,7 @@ class MockMouseEvent extends _i1.Mock implements _i2.MouseEvent {
354385
Invocation.getter(#page),
355386
),
356387
) as _i3.Point<num>);
388+
357389
@override
358390
_i2.DataTransfer get dataTransfer => (super.noSuchMethod(
359391
Invocation.getter(#dataTransfer),
@@ -366,6 +398,7 @@ class MockMouseEvent extends _i1.Mock implements _i2.MouseEvent {
366398
Invocation.getter(#dataTransfer),
367399
),
368400
) as _i2.DataTransfer);
401+
369402
@override
370403
_i2.Element get matchingTarget => (super.noSuchMethod(
371404
Invocation.getter(#matchingTarget),
@@ -378,30 +411,35 @@ class MockMouseEvent extends _i1.Mock implements _i2.MouseEvent {
378411
Invocation.getter(#matchingTarget),
379412
),
380413
) as _i2.Element);
414+
381415
@override
382416
List<_i2.EventTarget> get path => (super.noSuchMethod(
383417
Invocation.getter(#path),
384418
returnValue: <_i2.EventTarget>[],
385419
returnValueForMissingStub: <_i2.EventTarget>[],
386420
) as List<_i2.EventTarget>);
421+
387422
@override
388423
bool get defaultPrevented => (super.noSuchMethod(
389424
Invocation.getter(#defaultPrevented),
390425
returnValue: false,
391426
returnValueForMissingStub: false,
392427
) as bool);
428+
393429
@override
394430
int get eventPhase => (super.noSuchMethod(
395431
Invocation.getter(#eventPhase),
396432
returnValue: 0,
397433
returnValueForMissingStub: 0,
398434
) as int);
435+
399436
@override
400437
String get type => (super.noSuchMethod(
401438
Invocation.getter(#type),
402439
returnValue: '',
403440
returnValueForMissingStub: '',
404441
) as String);
442+
405443
@override
406444
bool getModifierState(String? keyArg) => (super.noSuchMethod(
407445
Invocation.method(
@@ -411,6 +449,7 @@ class MockMouseEvent extends _i1.Mock implements _i2.MouseEvent {
411449
returnValue: false,
412450
returnValueForMissingStub: false,
413451
) as bool);
452+
414453
@override
415454
List<_i2.EventTarget> composedPath() => (super.noSuchMethod(
416455
Invocation.method(
@@ -420,6 +459,7 @@ class MockMouseEvent extends _i1.Mock implements _i2.MouseEvent {
420459
returnValue: <_i2.EventTarget>[],
421460
returnValueForMissingStub: <_i2.EventTarget>[],
422461
) as List<_i2.EventTarget>);
462+
423463
@override
424464
void preventDefault() => super.noSuchMethod(
425465
Invocation.method(
@@ -428,6 +468,7 @@ class MockMouseEvent extends _i1.Mock implements _i2.MouseEvent {
428468
),
429469
returnValueForMissingStub: null,
430470
);
471+
431472
@override
432473
void stopImmediatePropagation() => super.noSuchMethod(
433474
Invocation.method(
@@ -436,6 +477,7 @@ class MockMouseEvent extends _i1.Mock implements _i2.MouseEvent {
436477
),
437478
returnValueForMissingStub: null,
438479
);
480+
439481
@override
440482
void stopPropagation() => super.noSuchMethod(
441483
Invocation.method(
@@ -456,42 +498,49 @@ class MockSyntheticEvent extends _i1.Mock implements _i4.SyntheticEvent {
456498
returnValue: false,
457499
returnValueForMissingStub: false,
458500
) as bool);
501+
459502
@override
460503
bool get cancelable => (super.noSuchMethod(
461504
Invocation.getter(#cancelable),
462505
returnValue: false,
463506
returnValueForMissingStub: false,
464507
) as bool);
508+
465509
@override
466510
bool get defaultPrevented => (super.noSuchMethod(
467511
Invocation.getter(#defaultPrevented),
468512
returnValue: false,
469513
returnValueForMissingStub: false,
470514
) as bool);
515+
471516
@override
472517
num get eventPhase => (super.noSuchMethod(
473518
Invocation.getter(#eventPhase),
474519
returnValue: 0,
475520
returnValueForMissingStub: 0,
476521
) as num);
522+
477523
@override
478524
bool get isTrusted => (super.noSuchMethod(
479525
Invocation.getter(#isTrusted),
480526
returnValue: false,
481527
returnValueForMissingStub: false,
482528
) as bool);
529+
483530
@override
484531
num get timeStamp => (super.noSuchMethod(
485532
Invocation.getter(#timeStamp),
486533
returnValue: 0,
487534
returnValueForMissingStub: 0,
488535
) as num);
536+
489537
@override
490538
String get type => (super.noSuchMethod(
491539
Invocation.getter(#type),
492540
returnValue: '',
493541
returnValueForMissingStub: '',
494542
) as String);
543+
495544
@override
496545
void preventDefault() => super.noSuchMethod(
497546
Invocation.method(

0 commit comments

Comments
 (0)