-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add named parameter for each field of the class (see CHANGELOG.md)
- Loading branch information
1 parent
63787e2
commit 2c420aa
Showing
9 changed files
with
161 additions
and
81 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
## 0.0.1 | ||
## 0.0.5 (https://github.com/ThomasDevApps/flutter_supabase_macro/pull/5) | ||
|
||
Initial release : | ||
- Creation of a `toJsonSupabase` which exclude the `primaryKey` from the `Map` | ||
Add a named parameter for each field of the class. | ||
For example, if class contain a field named `id` then `bool? removeId` | ||
will be add as a named parameter for `toJsonSupabase`. | ||
|
||
If `removeId` is not null and true then, `id` will not be add in the json. | ||
|
||
## 0.0.4 | ||
## 0.0.4 (https://github.com/ThomasDevApps/flutter_supabase_macro/pull/4) | ||
|
||
Only exclude `primaryKey` from the Map if : | ||
- Can't be nullable then check that `!= null` | ||
- The type is `String`, then check that the value `isNotEmpty` | ||
- The type is `String`, then check that the value `isNotEmpty` | ||
|
||
|
||
## 0.0.1 (https://github.com/ThomasDevApps/flutter_supabase_macro/pull/1) | ||
|
||
Initial release : | ||
- Creation of a `toJsonSupabase` which exclude the `primaryKey` from the `Map` |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,10 @@ | ||
part of '../../flutter_supabase_macro.dart'; | ||
|
||
extension _StringExtension on String { | ||
/// Set the first character to upper case. | ||
/// | ||
/// ```dart | ||
/// 'test of the function'.firstLetterUpperCase(); // 'Test of the function' | ||
/// ``` | ||
String _firstLetterToUpperCase() => "${this[0].toUpperCase()}${substring(1)}"; | ||
} |
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
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
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.