Skip to content

Commit d1df368

Browse files
committed
formatting
1 parent 334bd09 commit d1df368

File tree

3 files changed

+22
-18
lines changed

3 files changed

+22
-18
lines changed

example/lib/main.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ class _MyAppState extends State<MyApp> {
277277
child: Text("isscheduled (Android)"),
278278
onPressed: Platform.isAndroid
279279
? () async {
280-
final workInfo = await Workmanager().isScheduledByUniqueName(
280+
final workInfo =
281+
await Workmanager().isScheduledByUniqueName(
281282
simplePeriodicTask,
282283
);
283284
print('isscheduled = $workInfo');

workmanager/test/json_mapper_helper_test.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void main() {
4848
'uniqueName': 'uniqueName',
4949
'taskName': 'taskName',
5050
'tag': null,
51-
'flexInterval':null,
51+
'flexInterval': null,
5252
'frequency': null,
5353
'existingWorkPolicy': null,
5454
'initialDelaySeconds': null,
@@ -189,7 +189,6 @@ void main() {
189189
'tag': null,
190190
'frequency': null,
191191
'flexInterval': null,
192-
193192
'existingWorkPolicy': null,
194193
'initialDelaySeconds': 1,
195194
'networkType': 'connected',
@@ -218,7 +217,6 @@ void main() {
218217
'tag': null,
219218
'frequency': null,
220219
'flexInterval': null,
221-
222220
'existingWorkPolicy': null,
223221
'initialDelaySeconds': 1,
224222
'networkType': 'metered',
@@ -241,7 +239,6 @@ void main() {
241239
'tag': null,
242240
'frequency': null,
243241
'flexInterval': null,
244-
245242
'existingWorkPolicy': null,
246243
'initialDelaySeconds': 1,
247244
'networkType': 'metered',
@@ -270,7 +267,6 @@ void main() {
270267
'tag': null,
271268
'frequency': null,
272269
'flexInterval': null,
273-
274270
'existingWorkPolicy': null,
275271
'initialDelaySeconds': 1,
276272
'networkType': 'not_roaming',
@@ -299,7 +295,6 @@ void main() {
299295
'tag': null,
300296
'frequency': null,
301297
'flexInterval': null,
302-
303298
'existingWorkPolicy': null,
304299
'initialDelaySeconds': 1,
305300
'networkType': 'unmetered',
@@ -354,7 +349,6 @@ void main() {
354349
'tag': null,
355350
'frequency': null,
356351
'flexInterval': null,
357-
358352
'existingWorkPolicy': existingWorkPolicy[1],
359353
'initialDelaySeconds': 1,
360354
'networkType': null,

workmanager/test/workmanager_test.mocks.dart

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,17 @@ class MockWorkmanager extends _i1.Mock implements _i2.Workmanager {
2727

2828
@override
2929
void executeTask(_i2.BackgroundTaskHandler? backgroundTask) =>
30-
super.noSuchMethod(Invocation.method(#executeTask, [backgroundTask]), returnValueForMissingStub: null);
30+
super.noSuchMethod(Invocation.method(#executeTask, [backgroundTask]),
31+
returnValueForMissingStub: null);
3132

3233
@override
33-
_i3.Future<void> initialize(Function? callbackDispatcher, {bool? isInDebugMode = false}) =>
34-
(super.noSuchMethod(Invocation.method(#initialize, [callbackDispatcher], {#isInDebugMode: isInDebugMode}),
35-
returnValue: Future<void>.value(), returnValueForMissingStub: Future<void>.value()) as _i3.Future<void>);
34+
_i3.Future<void> initialize(Function? callbackDispatcher,
35+
{bool? isInDebugMode = false}) =>
36+
(super.noSuchMethod(
37+
Invocation.method(#initialize, [callbackDispatcher],
38+
{#isInDebugMode: isInDebugMode}),
39+
returnValue: Future<void>.value(),
40+
returnValueForMissingStub: Future<void>.value()) as _i3.Future<void>);
3641

3742
@override
3843
_i3.Future<void> registerOneOffTask(String? uniqueName, String? taskName,
@@ -92,16 +97,20 @@ class MockWorkmanager extends _i1.Mock implements _i2.Workmanager {
9297
returnValueForMissingStub: Future<void>.value()) as _i3.Future<void>);
9398

9499
@override
95-
_i3.Future<void> cancelByUniqueName(String? uniqueName) => (super.noSuchMethod(Invocation.method(#cancelByUniqueName, [uniqueName]),
96-
returnValue: Future<void>.value(), returnValueForMissingStub: Future<void>.value()) as _i3.Future<void>);
100+
_i3.Future<void> cancelByUniqueName(String? uniqueName) =>
101+
(super.noSuchMethod(Invocation.method(#cancelByUniqueName, [uniqueName]),
102+
returnValue: Future<void>.value(),
103+
returnValueForMissingStub: Future<void>.value()) as _i3.Future<void>);
97104

98105
@override
99106
_i3.Future<void> cancelByTag(String? tag) =>
100-
(super.noSuchMethod(Invocation.method(#cancelByTag, [tag]), returnValue: Future<void>.value(), returnValueForMissingStub: Future<void>.value())
101-
as _i3.Future<void>);
107+
(super.noSuchMethod(Invocation.method(#cancelByTag, [tag]),
108+
returnValue: Future<void>.value(),
109+
returnValueForMissingStub: Future<void>.value()) as _i3.Future<void>);
102110

103111
@override
104112
_i3.Future<void> cancelAll() =>
105-
(super.noSuchMethod(Invocation.method(#cancelAll, []), returnValue: Future<void>.value(), returnValueForMissingStub: Future<void>.value())
106-
as _i3.Future<void>);
113+
(super.noSuchMethod(Invocation.method(#cancelAll, []),
114+
returnValue: Future<void>.value(),
115+
returnValueForMissingStub: Future<void>.value()) as _i3.Future<void>);
107116
}

0 commit comments

Comments
 (0)