-
-
Notifications
You must be signed in to change notification settings - Fork 973
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98f3bd1
commit 8544e84
Showing
44 changed files
with
1,813 additions
and
2,590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...onvert_class_based_provider_to_functional/convert_class_based_provider_to_functional.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Message: `Convert to functional provider` | ||
=== diff (starting at line 7) | ||
/// Some comment | ||
@riverpod | ||
- class Example extends _$Example { | ||
- @override | ||
- int build() => 0; | ||
- } | ||
+ int example(ExampleRef ref) => 0; | ||
|
||
/// Some comment | ||
=== | ||
Message: `Convert to functional provider` | ||
=== diff (starting at line 7) | ||
/// Some comment | ||
@riverpod | ||
- class Example extends _$Example { | ||
- @override | ||
- int build() => 0; | ||
- } | ||
+ int example(ExampleRef ref) => 0; | ||
|
||
/// Some comment | ||
=== | ||
Message: `Convert to functional provider` | ||
=== diff (starting at line 7) | ||
/// Some comment | ||
@riverpod | ||
- class Example extends _$Example { | ||
- @override | ||
- int build() => 0; | ||
- } | ||
+ int example(ExampleRef ref) => 0; | ||
|
||
/// Some comment | ||
=== | ||
Message: `Convert to functional provider` | ||
=== diff (starting at line 14) | ||
/// Some comment | ||
@riverpod | ||
- class ExampleFamily extends _$ExampleFamily { | ||
- @override | ||
- int build({required int a, String b = '42'}) { | ||
- // Hello world | ||
- return 0; | ||
- } | ||
+ int exampleFamily(ExampleFamilyRef ref, {required int a, String b = '42'}) { | ||
+ // Hello world | ||
+ return 0; | ||
+ } | ||
=== |
138 changes: 0 additions & 138 deletions
138
...onvert_class_based_provider_to_functional/convert_class_based_provider_to_functional.json
This file was deleted.
Oops, something went wrong.
16 changes: 4 additions & 12 deletions
16
...t_class_based_provider_to_functional/convert_class_based_provider_to_functional_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...onvert_functional_provider_to_class_based/convert_functional_provider_to_class_based.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Message: `Convert to class-based provider` | ||
=== diff (starting at line 7) | ||
/// Some comment | ||
@riverpod | ||
- int example(ExampleRef ref) => 0; | ||
+ class Example extends _$Example { | ||
+ @override | ||
+ int build() => 0; | ||
+ } | ||
|
||
/// Some comment | ||
=== | ||
Message: `Convert to class-based provider` | ||
=== diff (starting at line 11) | ||
/// Some comment | ||
@riverpod | ||
- int exampleFamily(ExampleFamilyRef ref, {required int a, String b = '42'}) { | ||
- // Hello world | ||
- return 0; | ||
+ class ExampleFamily extends _$ExampleFamily { | ||
+ @override | ||
+ int build({required int a, String b = '42'}) { | ||
+ // Hello world | ||
+ return 0; | ||
+ } | ||
} | ||
=== |
70 changes: 0 additions & 70 deletions
70
...onvert_functional_provider_to_class_based/convert_functional_provider_to_class_based.json
This file was deleted.
Oops, something went wrong.
16 changes: 4 additions & 12 deletions
16
...t_functional_provider_to_class_based/convert_functional_provider_to_class_based_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.