Compare commits
129
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1d66dc6e4
|
||
|
|
25cf9518f9
|
||
|
|
8d833d39d7
|
||
|
|
d098d9a6bf
|
||
|
|
0f8c5bb983
|
||
|
|
20f07a177b
|
||
|
|
1a48b606a4
|
||
|
|
6c54689393
|
||
|
|
d6c9dfd8a7
|
||
|
|
881cbc5bef
|
||
|
|
81c8851ac8 | ||
|
|
0c176ba0fa | ||
|
|
970dde2ef1 | ||
|
|
2e187b26eb | ||
|
|
0337d4f97a | ||
|
|
3c3545abfe | ||
|
|
2dfbd59773 | ||
|
|
4a3fde3a1e | ||
|
|
317eb56d66 | ||
|
|
b9dac32143 | ||
|
|
8955788fa5 | ||
|
|
ca6af3ccc3 | ||
|
|
ad0f1ec1c5 | ||
|
|
41a484c013 | ||
|
|
4811ed8998 | ||
|
|
dba14088b0 | ||
|
|
b2fe14a123 | ||
|
|
bbd3f0a02d | ||
|
|
79dc34414c | ||
|
|
349d1ae288 | ||
|
|
49b534d145 | ||
|
|
a68da15cdc
|
||
|
|
6037e13f50
|
||
|
|
93cc5058d1
|
||
|
|
12d04c91ed
|
||
|
|
5906d54aad
|
||
|
|
b077f4baf0
|
||
|
|
133e0e910b | ||
|
|
25224469b5 | ||
|
|
6537945946 | ||
|
|
702164082a | ||
|
|
f2b8c03dd7 | ||
|
|
51672cc95a | ||
|
|
eda643e9b4 | ||
|
|
cae4b68046 | ||
|
|
4030511f4a | ||
|
|
8ed8a71c7c | ||
|
|
b6d22002ee | ||
|
|
9b9339cb56 | ||
|
|
b57500b854 | ||
|
|
1edb1f7324 | ||
|
|
edf72cf4c2 | ||
|
|
f6c16c5dc4 | ||
|
|
c6beae597b | ||
|
|
c2b60f2d79 | ||
|
|
1e8d5d088e | ||
|
|
419c99c103 | ||
|
|
5387dd6eed
|
||
|
|
f67e4aa112
|
||
|
|
2769d45e20
|
||
|
|
66719732f7
|
||
|
|
25018dc78a
|
||
|
|
efeb3acff3
|
||
|
|
ef52015372
|
||
|
|
c5f8b69184
|
||
|
|
33984b1733
|
||
|
|
a47c28a4d6
|
||
|
|
63bbde8213
|
||
|
|
8070623e88
|
||
|
|
4c08a692d2
|
||
|
|
8044d07413
|
||
|
|
1af9b0b1f1
|
||
|
|
3a7b0abc58
|
||
|
|
dd198b0e51
|
||
|
|
a595183107
|
||
|
|
c786c153e0
|
||
|
|
cc71bf7abd
|
||
|
|
ed06e18043
|
||
|
|
96781880f4
|
||
|
|
c331bc6056
|
||
|
|
77ce4e33ab
|
||
|
|
2806ac5923
|
||
|
|
ed29f39673
|
||
|
|
7880293723
|
||
|
|
5c34528b3d
|
||
|
|
198d83b663
|
||
|
|
bd636e9d24
|
||
|
|
c942e2aacf
|
||
|
|
82eeba4d7d
|
||
|
|
4695cf0618
|
||
|
|
d49a4cad31
|
||
|
|
e4d904eb8d
|
||
|
|
4f1a064298
|
||
|
|
168d840b87
|
||
|
|
aea71fa32c
|
||
|
|
b6f25dd5b5
|
||
|
|
61e28ce5e7
|
||
|
|
5050e2c2bb
|
||
|
|
9e1b76e07b
|
||
|
|
442baa6882
|
||
|
|
60126fffc4
|
||
|
|
07572aeca2
|
||
|
|
4332eafda0
|
||
|
|
160b30d21b
|
||
|
|
602a372d7c
|
||
|
|
43df087319
|
||
|
|
4f71118a65
|
||
|
|
4b37175d17 | ||
|
|
ea18d39c44 | ||
|
|
b9f2305bca | ||
|
|
55822ad870 | ||
|
|
a563bd1fe3 | ||
|
|
5464cd1d40 | ||
|
|
ba1c1016e5 | ||
|
|
23b608ed10 | ||
|
|
44b2b7c27d
|
||
|
|
6bad9a8a05
|
||
|
|
5d8f94bee8
|
||
|
|
75cb341447
|
||
|
|
efa7ca09dd
|
||
|
|
ac432f6dc8 | ||
|
|
6c85faba82 | ||
|
|
dd75ecfc7a | ||
|
|
0132771e17 | ||
|
|
5d5ae145aa | ||
|
|
07428a5215 | ||
|
|
c994c822b0 | ||
|
|
bde54e0cf5 | ||
|
|
f3c3939ba1 |
+2
-2
@@ -20,12 +20,12 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: quality-check
|
- name: quality-check
|
||||||
image: git.wyatt-studio.fr/wyatt-foss/flutter-melos:2.9.0
|
image: git.wyatt-studio.fr/wyatt-foss/flutter-melos:2.9.0-1
|
||||||
commands:
|
commands:
|
||||||
- melos run quality-check
|
- melos run quality-check
|
||||||
- melos run publish:validate
|
- melos run publish:validate
|
||||||
- name: publish
|
- name: publish
|
||||||
image: git.wyatt-studio.fr/wyatt-foss/flutter-melos:2.9.0
|
image: git.wyatt-studio.fr/wyatt-foss/flutter-melos:2.9.0-1
|
||||||
commands:
|
commands:
|
||||||
- melos run publish:validate
|
- melos run publish:validate
|
||||||
|
|
||||||
|
|||||||
+6
-1
@@ -13,6 +13,10 @@ build/
|
|||||||
# If you're building an application, you may want to check-in your pubspec.lock
|
# If you're building an application, you may want to check-in your pubspec.lock
|
||||||
pubspec.lock
|
pubspec.lock
|
||||||
|
|
||||||
|
# Directory created by dartdoc
|
||||||
|
# If you don't generate documentation locally you can remove this line.
|
||||||
|
doc/api/
|
||||||
|
|
||||||
# dotenv environment variables file
|
# dotenv environment variables file
|
||||||
.env*
|
.env*
|
||||||
|
|
||||||
@@ -34,6 +38,7 @@ pubspec.lock
|
|||||||
|
|
||||||
### Flutter ###
|
### Flutter ###
|
||||||
# Flutter/Dart/Pub related
|
# Flutter/Dart/Pub related
|
||||||
|
**/doc/api/
|
||||||
.fvm/
|
.fvm/
|
||||||
.pub-cache/
|
.pub-cache/
|
||||||
.pub/
|
.pub/
|
||||||
@@ -195,4 +200,4 @@ google-services.json
|
|||||||
pubspec_overrides.yaml
|
pubspec_overrides.yaml
|
||||||
|
|
||||||
# Mason
|
# Mason
|
||||||
.mason/
|
.mason/
|
||||||
@@ -3,6 +3,28 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## 2023-02-24
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Packages with breaking changes:
|
||||||
|
|
||||||
|
- There are no breaking changes in this release.
|
||||||
|
|
||||||
|
Packages with other changes:
|
||||||
|
|
||||||
|
- [`wyatt_analysis` - `v2.4.1`](#wyatt_analysis---v241)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### `wyatt_analysis` - `v2.4.1`
|
||||||
|
|
||||||
|
- **FEAT**: add latest version persistence between script executions.
|
||||||
|
- **FEAT**: ignore todo's.
|
||||||
|
|
||||||
|
|
||||||
## 2023-02-07
|
## 2023-02-07
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|||||||
@@ -17,11 +17,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
|
<a href="https://wyatt-studio.fr">
|
||||||
<a href="https://wyattapp.io">
|
|
||||||
<img width="150px" src="resources/wyatt-campus-logo.png">
|
|
||||||
</a>
|
|
||||||
<a href="https://wyatt-studio.fr">
|
|
||||||
<img width="150px" src="resources/wyatt-studio-logo.png">
|
<img width="150px" src="resources/wyatt-studio-logo.png">
|
||||||
</a>
|
</a>
|
||||||
<h1 align="center">Wyatt Packages</h1>
|
<h1 align="center">Wyatt Packages</h1>
|
||||||
@@ -44,10 +40,9 @@
|
|||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
Here is it a set of [Flutter plugins](https://flutter.io/platform-plugins/) that power up your applications.
|
Here is a set of [Flutter plugins](https://flutter.io/platform-plugins/) that enhance your applications.
|
||||||
|
|
||||||
[Flutter](https://flutter.dev) is Google's UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase. Flutter is used by developers and organizations around the world, and is free
|
[Flutter](https://flutter.dev) is Google's UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop using a single codebase. It is used by developers and organizations worldwide and is free and open-source.
|
||||||
and open source.
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -61,21 +56,21 @@ git clone ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-packages.git
|
|||||||
|
|
||||||
### Prerequisite
|
### Prerequisite
|
||||||
|
|
||||||
- [Flutter](https://github.com/flutter/flutter).
|
1. [Flutter](https://github.com/flutter/flutter). It is a UI toolkit developed by Google for building beautiful and natively compiled applications for mobile, web, and desktop from a single codebase.
|
||||||
|
|
||||||
- [Melos](https://github.com/invertase/melos). Used to manage Dart projects with multiple packages.
|
2. [Melos](https://github.com/invertase/melos). Melos is a tool that helps in managing Dart projects that have multiple packages. It can be installed using the following command:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
dart pub global activate melos
|
dart pub global activate melos
|
||||||
```
|
```
|
||||||
|
|
||||||
- [Mason](https://github.com/felangel/mason). Used for code generation.
|
3. [Mason](https://github.com/felangel/mason). Mason is used for code generation purposes. It can be installed by running the following command:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
dart pub global activate mason_cli
|
dart pub global activate mason_cli
|
||||||
```
|
```
|
||||||
|
|
||||||
- [Lcov](https://github.com/linux-test-project/lcov). Used to generate coverage data.
|
4. [Lcov](https://github.com/linux-test-project/lcov). Lcov is a tool used to generate coverage data. It can be installed on macOS by running the following command:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# on macos
|
# on macos
|
||||||
@@ -84,38 +79,39 @@ brew install lcov
|
|||||||
|
|
||||||
- genhtml. Used to convert coverage data into html pages.
|
- genhtml. Used to convert coverage data into html pages.
|
||||||
|
|
||||||
After installing all these packages, bootstrap with `melos bs`.
|
After installation of all these packages, the project can be bootstrapped using the command `melos bs`.
|
||||||
|
|
||||||
### Create a new package
|
### Create a new package
|
||||||
|
|
||||||
Create a new package in `packages/` folder.
|
Create a new package in `packages/` folder.
|
||||||
|
To create a new package in the packages/ folder, run the following command in the terminal:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
mason make wyatt_package --package_name wyatt_<name> --description A new Wyatt package --flutter_only false
|
mason make wyatt_package --package_name wyatt_<name> --description A new Wyatt package --flutter_only false
|
||||||
```
|
```
|
||||||
|
|
||||||
Then bootstrap project with `melos bs` command.
|
The <name> variable in the above command is important and must be clear and understandable.
|
||||||
|
|
||||||
|
After creating the package, bootstrap the project with the `melos bs` command.
|
||||||
|
|
||||||
#### Naming
|
#### Naming
|
||||||
|
|
||||||
In the previous instructions `<name>` variable is important.
|
In the previous instructions `<name>` variable is important.
|
||||||
It have to be clear and intelligible.
|
It have to be clear and intelligible.
|
||||||
|
|
||||||
You **MUST** use underscores.
|
1. You must use underscores in the name.
|
||||||
|
2. You must use the wyatt prefix for the package name.
|
||||||
|
3. You must name the example with a specific name.
|
||||||
|
|
||||||
You **MUST** use `wyatt` prefix for package.
|
For example, if the name is "CRUD BLOC," the following naming conventions should be used:
|
||||||
|
|
||||||
You **MUST** name example with specific name.
|
1. name: crud_bloc
|
||||||
|
2. package name: wyatt_crud_bloc
|
||||||
For example, if name is CRUD BLOC
|
3. example name: crud_bloc_example
|
||||||
|
|
||||||
- name will be crud_bloc
|
|
||||||
- so the package will be: `wyatt_crud_bloc`
|
|
||||||
- and the example will be: `crud_bloc_example`
|
|
||||||
|
|
||||||
### Create issues
|
### Create issues
|
||||||
|
|
||||||
Add the issues directly related to what you want to develop and label them correctly.
|
Create an issue for each specific feature or task you want to work on and label it correctly using the following format:
|
||||||
|
|
||||||
```
|
```
|
||||||
Type(scope): issue.
|
Type(scope): issue.
|
||||||
@@ -128,18 +124,18 @@ For example, on notification bloc package :
|
|||||||
|
|
||||||
### Branches
|
### Branches
|
||||||
|
|
||||||
Master is protected. You can't push on it. Please develop your feature on another branch. The name of your branch has to match with the issue opened.
|
The master branch is protected and cannot be pushed to directly. Please create a separate branch for each feature or task, with a name that corresponds to the related issue. The branch name should follow this format:
|
||||||
|
|
||||||
`type(scope):issue`
|
`type(scope):issue`
|
||||||
|
|
||||||
Example :
|
Example :
|
||||||
Issue :
|
For the issue:
|
||||||
|
|
||||||
- `Feature(notification_bloc): add firebase messaging data source.`
|
- `Feature(notification_bloc): add firebase messaging data source.`
|
||||||
|
|
||||||
Branch related to this issue :
|
The related branch should be named:
|
||||||
|
|
||||||
- `feature(notification_bloc)/add_firebase_messaging_data_source`
|
- `notification_bloc/feat/add_firebase_messaging_data_source`
|
||||||
|
|
||||||
### Commits
|
### Commits
|
||||||
|
|
||||||
@@ -163,12 +159,11 @@ Some examples :
|
|||||||
- `docs: update readme.` = update **this** readme file.
|
- `docs: update readme.` = update **this** readme file.
|
||||||
- `fix(crud)!: fix bug in awesome() function. (#32)` = fix a bug, `!` is important and indicate `BREAKING CHANGES` linked with the 32nd issue.
|
- `fix(crud)!: fix bug in awesome() function. (#32)` = fix a bug, `!` is important and indicate `BREAKING CHANGES` linked with the 32nd issue.
|
||||||
|
|
||||||
When you have finished developing, and are ready to close the issue, close it via your commit :
|
When you have completed your development work and are ready to resolve the related issue, you can close it via your commit message by including (close #issue_number). For example:
|
||||||
|
|
||||||
`feat(auth): add AWS support. (close #31)`
|
```shell
|
||||||
|
feat(auth): add AWS support. (close #31)
|
||||||
Note that your issue will be close after merging on master.
|
```
|
||||||
Before closing the issue, please check tests and update coverage. You might run :
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
melos run test:all # this will run all tests in this project
|
melos run test:all # this will run all tests in this project
|
||||||
@@ -179,45 +174,44 @@ melos run publish:validate # this will run a validation before publish packages
|
|||||||
melos run publish # this will publish packages
|
melos run publish # this will publish packages
|
||||||
```
|
```
|
||||||
|
|
||||||
> Note that only modified package will be verified and published.
|
Please note that the issue will only be closed after it has been merged into the master branch. Before closing the issue, it is important to verify that all tests have been run and that coverage has been updated.
|
||||||
|
|
||||||
#### Merge your work
|
#### Merge your work
|
||||||
|
|
||||||
After closing your issue, some work may have been done on master in the meantime. To keep a clean git history, please rebase before opening a change request.
|
When you have completed your work and closed the related issue, it's possible that some changes may have been made to the master branch in the meantime. To maintain a clean Git history, it's recommended to rebase before creating a change request (pull request).
|
||||||
|
|
||||||
Two situations :
|
Two situations :
|
||||||
|
|
||||||
- You have not yet created your branch and have committed locally :
|
- You haven't created a branch yet and have made local commits:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
```
|
```
|
||||||
|
|
||||||
- You are already working on your branch :
|
- You are already working on a branch:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
git rebase -i master
|
git rebase -i master
|
||||||
```
|
```
|
||||||
|
|
||||||
If possible, please use `--fixup` on your commit in interactive rebase.
|
It's recommended to use the `--fixup` option during the interactive rebase to keep the Git history clean.
|
||||||
|
|
||||||
Then, opend your PR, get the necessary approval and merge your work. Then you're done ✅.
|
Once you have rebased, you can create a pull request, receive the necessary approvals, and then merge your work. And with that, you're done! 🎉
|
||||||
|
|
||||||
#### Update version.
|
#### Update version.
|
||||||
|
|
||||||
Once your work is on the master, you can update your package version. Please filter packages to update only your package. `--scope` is used to do it.
|
When your work has been merged into the master branch, it's time to update the package version. To update only your specific package, use the --scope option. For example, after merging changes into the `wyatt_notification_bloc` package, you can run the following command:
|
||||||
For example, after merging changes on `wyatt_otification_bloc` package, you might run :
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
melos version --scope="*wyatt_notification_bloc*"
|
melos version --scope="*wyatt_notification_bloc*"
|
||||||
```
|
```
|
||||||
|
|
||||||
In fact, melos will filter all packages that match the `wyatt_notification_block` pattern.
|
This will filter all packages that match the `wyatt_notification_bloc` pattern and update only that package.
|
||||||
|
|
||||||
You can update check all packages tests by running :
|
You can then verify that all packages and their tests are working correctly by running:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
melos run test
|
melos run test:all
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Publish your package
|
#### Publish your package
|
||||||
@@ -265,14 +259,14 @@ Here you can change `package name` and `package version`.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Status
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
This repository is maintained by Wyatt Studio but work is in progress.
|
|
||||||
|
|
||||||
## Simple work flow diagramm
|
## Simple work flow diagramm
|
||||||
|
|
||||||
To sum up, here a simple work flow diagramm.
|
To sum up, here a simple work flow diagramm.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
## Status
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
This repository is maintained by Wyatt Studio but work is in progress.
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
{"bricks":{"wyatt_clean_code":{"git":{"url":"ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-bricks.git","path":"bricks/wyatt_clean_code","ref":"5009f1ef21d8531b773298c0fc08704d8f69afd1"}},"wyatt_feature_brick":{"git":{"url":"ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-bricks.git","path":"bricks/wyatt_feature_brick","ref":"5009f1ef21d8531b773298c0fc08704d8f69afd1"}},"wyatt_package_template":{"git":{"url":"ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-bricks.git","path":"bricks/wyatt_package_template","ref":"5009f1ef21d8531b773298c0fc08704d8f69afd1"}}}}
|
{"bricks":{"wyatt_component_template":{"git":{"url":"ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-bricks.git","path":"bricks/wyatt_component_template","ref":"7cea909470ce75b91840f479649b93f953ded596"}}}}
|
||||||
+21
-9
@@ -1,13 +1,25 @@
|
|||||||
|
# Copyright (C) 2023 WYATT GROUP
|
||||||
|
# Please see the AUTHORS file for details.
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
bricks:
|
bricks:
|
||||||
wyatt_clean_code:
|
|
||||||
git:
|
|
||||||
url: "ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-bricks.git"
|
|
||||||
path: bricks/wyatt_clean_code
|
|
||||||
wyatt_feature_brick:
|
|
||||||
git:
|
|
||||||
url: "ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-bricks.git"
|
|
||||||
path: bricks/wyatt_feature_brick
|
|
||||||
wyatt_package_template:
|
wyatt_package_template:
|
||||||
git:
|
git:
|
||||||
url: "ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-bricks.git"
|
url: "ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-bricks.git"
|
||||||
path: bricks/wyatt_package_template
|
path: bricks/wyatt_package_template
|
||||||
|
wyatt_component_template:
|
||||||
|
git:
|
||||||
|
url: "ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-bricks.git"
|
||||||
|
path: bricks/wyatt_component_template
|
||||||
+9
-5
@@ -24,13 +24,17 @@ scripts:
|
|||||||
melos exec -c 1 -- flutter analyze --fatal-infos
|
melos exec -c 1 -- flutter analyze --fatal-infos
|
||||||
description: Run `flutter analyze` for all packages.
|
description: Run `flutter analyze` for all packages.
|
||||||
|
|
||||||
format:
|
fix:
|
||||||
run: melos exec flutter format . --fix
|
run: melos exec dart fix . --apply
|
||||||
description: Run `flutter format` for all packages.
|
description: Run `dart fix` for all packages.
|
||||||
|
|
||||||
|
format:
|
||||||
|
run: melos exec dart format .
|
||||||
|
description: Run `dart format` for all packages.
|
||||||
|
|
||||||
format-check:
|
format-check:
|
||||||
run: melos exec flutter format . --set-exit-if-changed
|
run: melos exec dart fix . --set-exit-if-changed
|
||||||
description: Run `flutter format` checks for all packages.
|
description: Run `dart fix` checks for all packages.
|
||||||
|
|
||||||
clean:deep:
|
clean:deep:
|
||||||
run: git clean -x -d -f -q
|
run: git clean -x -d -f -q
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
2.4.1
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
new_version.sh
|
||||||
|
.latest_version
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2022 WYATT GROUP
|
* Copyright (C) 2023 WYATT GROUP
|
||||||
* Please see the AUTHORS file for details.
|
* Please see the AUTHORS file for details.
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
## 2.4.1
|
||||||
|
|
||||||
|
- **FEAT**: add latest version persistence between script executions.
|
||||||
|
- **FEAT**: ignore todo's.
|
||||||
|
|
||||||
## 2.4.0
|
## 2.4.0
|
||||||
|
|
||||||
- **FEAT**: add new lint rules.
|
- **FEAT**: add new lint rules.
|
||||||
|
|||||||
@@ -20,10 +20,18 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
This package provides lint rules for Dart and Flutter which are used at [Wyatt](https://wyattapp.io) and [Wyatt Studio](https://wyatt-studio.fr). For more information, see the complete list of options in **lib/analysis_options.2.4.0.yaml**.
|
This package provides lint rules for Dart and Flutter which are used at [Wyatt](https://wyattapp.io) and [Wyatt Studio](https://wyatt-studio.fr). For more information, see the complete list of options in **lib/analysis_options.2.4.1.yaml**.
|
||||||
|
|
||||||
**Note**: This package was heavily inspired by [pedantic](https://github.com/dart-lang/pedantic), [Very Good Analysis](https://github.com/VeryGoodOpenSource/very_good_analysis) and the official [flutter_lints](https://pub.dev/packages/flutter_lints).
|
**Note**: This package was heavily inspired by [pedantic](https://github.com/dart-lang/pedantic), [Very Good Analysis](https://github.com/VeryGoodOpenSource/very_good_analysis) and the official [flutter_lints](https://pub.dev/packages/flutter_lints).
|
||||||
|
|
||||||
|
## Adding Wyatt Analysis to your project
|
||||||
|
|
||||||
|
Using CLI:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
dart pub add wyatt_analysis:2.4.1 --dev --hosted-url=https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
To use the lints, add a dependency in your `pubspec.yaml` :
|
To use the lints, add a dependency in your `pubspec.yaml` :
|
||||||
@@ -31,7 +39,7 @@ To use the lints, add a dependency in your `pubspec.yaml` :
|
|||||||
```yaml
|
```yaml
|
||||||
wyatt_analysis:
|
wyatt_analysis:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/
|
||||||
version: 2.4.0
|
version: 2.4.1
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, add an include in `analysis_options.yaml` :
|
Then, add an include in `analysis_options.yaml` :
|
||||||
@@ -49,13 +57,13 @@ include: package:wyatt_analysis/analysis_options.flutter.yaml
|
|||||||
If you wish to restrict the lint version, specify a version of `analysis_options.yaml` instead:
|
If you wish to restrict the lint version, specify a version of `analysis_options.yaml` instead:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
include: package:wyatt_analysis/analysis_options.flutter.2.4.0.yaml
|
include: package:wyatt_analysis/analysis_options.flutter.2.4.1.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
If you just want **Dart** version:
|
If you just want **Dart** version:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
include: package:wyatt_analysis/analysis_options.2.4.0.yaml
|
include: package:wyatt_analysis/analysis_options.2.4.1.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
## Suppressing Lints
|
## Suppressing Lints
|
||||||
@@ -109,10 +117,11 @@ To indicate your project is using `wyatt_analysis` → [![style: wyatt analysis]
|
|||||||
When you want to create a new version of the plugin. Before any modification, execute the following command to create new files:
|
When you want to create a new version of the plugin. Before any modification, execute the following command to create new files:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./new_version.sh <previous_version> <new_version>
|
./new_version.sh <new_version>
|
||||||
```
|
```
|
||||||
> Where `<previous_version>` is 2.4.0
|
|
||||||
|
|
||||||
|
The previous version is automatically detected thanks to the `.latest_version` file.
|
||||||
|
So `.latest_version` needs to be versioned!
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,217 @@
|
|||||||
|
# Copyright (C) 2023 WYATT GROUP
|
||||||
|
# Please see the AUTHORS file for details.
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
analyzer:
|
||||||
|
language:
|
||||||
|
strict-casts: true
|
||||||
|
strict-inference: true
|
||||||
|
strict-raw-types: true
|
||||||
|
|
||||||
|
errors:
|
||||||
|
todo: ignore
|
||||||
|
close_sinks: ignore
|
||||||
|
missing_required_param: error
|
||||||
|
missing_return: error
|
||||||
|
|
||||||
|
exclude:
|
||||||
|
- lib/l10n/**
|
||||||
|
- lib/generated/**
|
||||||
|
- lib/gen/**
|
||||||
|
- lib/generated_plugin_registrant.dart
|
||||||
|
- test/.test_coverage.dart
|
||||||
|
- "**/*.g.dart"
|
||||||
|
- "**/*.freezed.dart"
|
||||||
|
|
||||||
|
linter:
|
||||||
|
rules:
|
||||||
|
- always_declare_return_types
|
||||||
|
- always_put_control_body_on_new_line
|
||||||
|
- always_put_required_named_parameters_first
|
||||||
|
- always_require_non_null_named_parameters
|
||||||
|
- always_use_package_imports
|
||||||
|
- annotate_overrides
|
||||||
|
- avoid_bool_literals_in_conditional_expressions
|
||||||
|
- avoid_catching_errors
|
||||||
|
- avoid_double_and_int_checks
|
||||||
|
- avoid_dynamic_calls
|
||||||
|
- avoid_empty_else
|
||||||
|
- avoid_equals_and_hash_code_on_mutable_classes
|
||||||
|
- avoid_escaping_inner_quotes
|
||||||
|
- avoid_field_initializers_in_const_classes
|
||||||
|
- avoid_final_parameters
|
||||||
|
- avoid_function_literals_in_foreach_calls
|
||||||
|
- avoid_init_to_null
|
||||||
|
- avoid_js_rounded_ints
|
||||||
|
- avoid_multiple_declarations_per_line
|
||||||
|
- avoid_null_checks_in_equality_operators
|
||||||
|
- avoid_positional_boolean_parameters
|
||||||
|
- avoid_private_typedef_functions
|
||||||
|
- avoid_redundant_argument_values
|
||||||
|
- avoid_relative_lib_imports
|
||||||
|
- avoid_renaming_method_parameters
|
||||||
|
- avoid_return_types_on_setters
|
||||||
|
- avoid_returning_null
|
||||||
|
- avoid_returning_null_for_future
|
||||||
|
- avoid_returning_null_for_void
|
||||||
|
- avoid_returning_this
|
||||||
|
- avoid_setters_without_getters
|
||||||
|
- avoid_shadowing_type_parameters
|
||||||
|
- avoid_single_cascade_in_expression_statements
|
||||||
|
- avoid_slow_async_io
|
||||||
|
- avoid_type_to_string
|
||||||
|
- avoid_types_as_parameter_names
|
||||||
|
- avoid_types_on_closure_parameters
|
||||||
|
- avoid_unused_constructor_parameters
|
||||||
|
- avoid_void_async
|
||||||
|
- await_only_futures
|
||||||
|
- camel_case_extensions
|
||||||
|
- camel_case_types
|
||||||
|
- cancel_subscriptions
|
||||||
|
- cascade_invocations
|
||||||
|
- cast_nullable_to_non_nullable
|
||||||
|
- collection_methods_unrelated_type
|
||||||
|
- combinators_ordering
|
||||||
|
- comment_references
|
||||||
|
- conditional_uri_does_not_exist
|
||||||
|
- constant_identifier_names
|
||||||
|
- control_flow_in_finally
|
||||||
|
- curly_braces_in_flow_control_structures
|
||||||
|
- depend_on_referenced_packages
|
||||||
|
- deprecated_consistency
|
||||||
|
- directives_ordering
|
||||||
|
- empty_catches
|
||||||
|
- empty_constructor_bodies
|
||||||
|
- empty_statements
|
||||||
|
- eol_at_end_of_file
|
||||||
|
- exhaustive_cases
|
||||||
|
- file_names
|
||||||
|
- flutter_style_todos
|
||||||
|
- hash_and_equals
|
||||||
|
- implementation_imports
|
||||||
|
- implicit_call_tearoffs
|
||||||
|
- iterable_contains_unrelated_type
|
||||||
|
- join_return_with_assignment
|
||||||
|
- leading_newlines_in_multiline_strings
|
||||||
|
- library_names
|
||||||
|
- library_prefixes
|
||||||
|
- library_private_types_in_public_api
|
||||||
|
- lines_longer_than_80_chars
|
||||||
|
- list_remove_unrelated_type
|
||||||
|
- literal_only_boolean_expressions
|
||||||
|
- missing_whitespace_between_adjacent_strings
|
||||||
|
- no_adjacent_strings_in_list
|
||||||
|
- no_default_cases
|
||||||
|
- no_duplicate_case_values
|
||||||
|
- no_leading_underscores_for_library_prefixes
|
||||||
|
- no_leading_underscores_for_local_identifiers
|
||||||
|
- no_runtimeType_toString
|
||||||
|
- non_constant_identifier_names
|
||||||
|
- noop_primitive_operations
|
||||||
|
- null_check_on_nullable_type_parameter
|
||||||
|
- null_closures
|
||||||
|
- one_member_abstracts
|
||||||
|
- only_throw_errors
|
||||||
|
- overridden_fields
|
||||||
|
- package_api_docs
|
||||||
|
- package_names
|
||||||
|
- package_prefixed_library_names
|
||||||
|
- parameter_assignments
|
||||||
|
- prefer_adjacent_string_concatenation
|
||||||
|
- prefer_asserts_in_initializer_lists
|
||||||
|
- prefer_asserts_with_message
|
||||||
|
- prefer_collection_literals
|
||||||
|
- prefer_conditional_assignment
|
||||||
|
- prefer_const_constructors
|
||||||
|
- prefer_const_constructors_in_immutables
|
||||||
|
- prefer_const_declarations
|
||||||
|
- prefer_const_literals_to_create_immutables
|
||||||
|
- prefer_constructors_over_static_methods
|
||||||
|
- prefer_contains
|
||||||
|
- prefer_equal_for_default_values
|
||||||
|
- prefer_expression_function_bodies
|
||||||
|
- prefer_final_fields
|
||||||
|
- prefer_final_in_for_each
|
||||||
|
- prefer_final_locals
|
||||||
|
- prefer_for_elements_to_map_fromIterable
|
||||||
|
- prefer_function_declarations_over_variables
|
||||||
|
- prefer_generic_function_type_aliases
|
||||||
|
- prefer_if_elements_to_conditional_expressions
|
||||||
|
- prefer_if_null_operators
|
||||||
|
- prefer_initializing_formals
|
||||||
|
- prefer_inlined_adds
|
||||||
|
- prefer_int_literals
|
||||||
|
- prefer_interpolation_to_compose_strings
|
||||||
|
- prefer_is_empty
|
||||||
|
- prefer_is_not_empty
|
||||||
|
- prefer_is_not_operator
|
||||||
|
- prefer_iterable_whereType
|
||||||
|
- prefer_mixin
|
||||||
|
- prefer_null_aware_method_calls
|
||||||
|
- prefer_null_aware_operators
|
||||||
|
- prefer_single_quotes
|
||||||
|
- prefer_spread_collections
|
||||||
|
- prefer_typing_uninitialized_variables
|
||||||
|
- prefer_void_to_null
|
||||||
|
- provide_deprecation_message
|
||||||
|
- recursive_getters
|
||||||
|
- require_trailing_commas
|
||||||
|
- slash_for_doc_comments
|
||||||
|
- sort_constructors_first
|
||||||
|
- sort_unnamed_constructors_first
|
||||||
|
- test_types_in_equals
|
||||||
|
- throw_in_finally
|
||||||
|
- tighten_type_of_initializing_formals
|
||||||
|
- type_annotate_public_apis
|
||||||
|
- type_init_formals
|
||||||
|
- unawaited_futures
|
||||||
|
- unnecessary_await_in_return
|
||||||
|
- unnecessary_brace_in_string_interps
|
||||||
|
- unnecessary_const
|
||||||
|
- unnecessary_constructor_name
|
||||||
|
- unnecessary_getters_setters
|
||||||
|
- unnecessary_lambdas
|
||||||
|
- unnecessary_late
|
||||||
|
- unnecessary_new
|
||||||
|
- unnecessary_null_aware_assignments
|
||||||
|
- unnecessary_null_checks
|
||||||
|
- unnecessary_null_in_if_null_operators
|
||||||
|
- unnecessary_nullable_for_final_variable_declarations
|
||||||
|
- unnecessary_overrides
|
||||||
|
- unnecessary_parenthesis
|
||||||
|
- unnecessary_raw_strings
|
||||||
|
- unnecessary_statements
|
||||||
|
- unnecessary_string_escapes
|
||||||
|
- unnecessary_string_interpolations
|
||||||
|
- unnecessary_this
|
||||||
|
- unnecessary_to_list_in_spreads
|
||||||
|
- unrelated_type_equality_checks
|
||||||
|
- unsafe_html
|
||||||
|
- use_enums
|
||||||
|
- use_function_type_syntax_for_parameters
|
||||||
|
- use_if_null_to_convert_nulls_to_bools
|
||||||
|
- use_is_even_rather_than_modulo
|
||||||
|
- use_late_for_private_fields_and_variables
|
||||||
|
- use_named_constants
|
||||||
|
- use_raw_strings
|
||||||
|
- use_rethrow_when_possible
|
||||||
|
- use_setters_to_change_properties
|
||||||
|
- use_string_buffers
|
||||||
|
- use_string_in_part_of_directives
|
||||||
|
- use_super_parameters
|
||||||
|
- use_test_throws_matchers
|
||||||
|
- use_to_and_as_if_applicable
|
||||||
|
- valid_regexps
|
||||||
|
- void_checks
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
# Copyright (C) 2023 WYATT GROUP
|
||||||
|
# Please see the AUTHORS file for details.
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
include: package:wyatt_analysis/analysis_options.2.4.1.yaml
|
||||||
|
|
||||||
|
linter:
|
||||||
|
rules:
|
||||||
|
- avoid_print
|
||||||
|
- avoid_unnecessary_containers
|
||||||
|
- avoid_web_libraries_in_flutter
|
||||||
|
- no_logic_in_create_state
|
||||||
|
- sized_box_for_whitespace
|
||||||
|
- sized_box_shrink_expand
|
||||||
|
- sort_child_properties_last
|
||||||
|
- use_build_context_synchronously
|
||||||
|
- use_colored_box
|
||||||
|
- use_decorated_box
|
||||||
|
- use_full_hex_values_for_flutter_colors
|
||||||
|
- use_key_in_widget_constructors
|
||||||
@@ -14,5 +14,4 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
include: package:wyatt_analysis/analysis_options.flutter.2.4.0.yaml
|
include: package:wyatt_analysis/analysis_options.flutter.2.4.1.yaml
|
||||||
|
|
||||||
|
|||||||
@@ -14,5 +14,4 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
include: package:wyatt_analysis/analysis_options.2.4.0.yaml
|
include: package:wyatt_analysis/analysis_options.2.4.1.yaml
|
||||||
|
|
||||||
|
|||||||
@@ -18,4 +18,4 @@
|
|||||||
/// used internally at [Wyatt Studio](https://wyatt-studio.fr).
|
/// used internally at [Wyatt Studio](https://wyatt-studio.fr).
|
||||||
library wyatt_analysis;
|
library wyatt_analysis;
|
||||||
|
|
||||||
const String wyattAnalysisVersion = '2.4.0';
|
const String wyattAnalysisVersion = '2.4.1';
|
||||||
|
|||||||
@@ -18,20 +18,12 @@
|
|||||||
|
|
||||||
usage="
|
usage="
|
||||||
usage:
|
usage:
|
||||||
$(basename "$0") <previous_version> <new_version> -- create new analyzer files.
|
$(basename "$0") <new_version> -- create new analyzer files.
|
||||||
|
|
||||||
where:
|
where:
|
||||||
previous_version: last version, for example \`2.3.0\`
|
|
||||||
new_version: new version, for example \`2.4.0\`"
|
new_version: new version, for example \`2.4.0\`"
|
||||||
|
|
||||||
old=$1
|
new=$1
|
||||||
new=$2
|
|
||||||
|
|
||||||
if [ -z "$old" ]; then
|
|
||||||
echo "previous_version cannot be null"
|
|
||||||
echo "${usage}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$new" ]; then
|
if [ -z "$new" ]; then
|
||||||
echo "new_version cannot be null"
|
echo "new_version cannot be null"
|
||||||
@@ -43,6 +35,19 @@ SCRIPT_PATH="${BASH_SOURCE:-$0}"
|
|||||||
ABS_SCRIPT_PATH="$(realpath "${SCRIPT_PATH}")"
|
ABS_SCRIPT_PATH="$(realpath "${SCRIPT_PATH}")"
|
||||||
ABS_DIRECTORY="$(dirname "${ABS_SCRIPT_PATH}")"
|
ABS_DIRECTORY="$(dirname "${ABS_SCRIPT_PATH}")"
|
||||||
|
|
||||||
|
LATEST_VERSION="${ABS_DIRECTORY}/.latest_version"
|
||||||
|
|
||||||
|
# Read latest version
|
||||||
|
if [ -e "$LATEST_VERSION" ]; then
|
||||||
|
old=$(cat "$LATEST_VERSION")
|
||||||
|
echo "> latest package version is: $old"
|
||||||
|
echo "> new package version is: $new"
|
||||||
|
else
|
||||||
|
echo "latest version is not set"
|
||||||
|
echo "create a file named \`.latest_version\` in the root of the project"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
LIB="${ABS_DIRECTORY}/lib/wyatt_analysis.dart"
|
LIB="${ABS_DIRECTORY}/lib/wyatt_analysis.dart"
|
||||||
OPTIONS="${ABS_DIRECTORY}/lib/analysis_options.yaml"
|
OPTIONS="${ABS_DIRECTORY}/lib/analysis_options.yaml"
|
||||||
OLD_OPTIONS="${ABS_DIRECTORY}/lib/analysis_options.${old}.yaml"
|
OLD_OPTIONS="${ABS_DIRECTORY}/lib/analysis_options.${old}.yaml"
|
||||||
@@ -52,6 +57,7 @@ OPTIONS_FLUTTER="${ABS_DIRECTORY}/lib/analysis_options.flutter.yaml"
|
|||||||
OLD_OPTIONS_FLUTTER="${ABS_DIRECTORY}/lib/analysis_options.flutter.${old}.yaml"
|
OLD_OPTIONS_FLUTTER="${ABS_DIRECTORY}/lib/analysis_options.flutter.${old}.yaml"
|
||||||
NEW_OPTIONS_FLUTTER="${ABS_DIRECTORY}/lib/analysis_options.flutter.${new}.yaml"
|
NEW_OPTIONS_FLUTTER="${ABS_DIRECTORY}/lib/analysis_options.flutter.${new}.yaml"
|
||||||
|
|
||||||
|
|
||||||
if [ ! -e "$OLD_OPTIONS" ]; then
|
if [ ! -e "$OLD_OPTIONS" ]; then
|
||||||
echo "analysis_options.${old}.yaml doesn't exists"
|
echo "analysis_options.${old}.yaml doesn't exists"
|
||||||
echo "${usage}"
|
echo "${usage}"
|
||||||
@@ -91,7 +97,7 @@ sed -e "s/${old}/${new}/g" "README.md" > tempfile.tmp
|
|||||||
mv -f tempfile.tmp "README.md"
|
mv -f tempfile.tmp "README.md"
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
# Copyright (C) 2022 WYATT GROUP
|
# Copyright (C) 2023 WYATT GROUP
|
||||||
# Please see the AUTHORS file for details.
|
# Please see the AUTHORS file for details.
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
@@ -111,7 +117,7 @@ include: package:wyatt_analysis/analysis_options.${new}.yaml
|
|||||||
" > "${OPTIONS}"
|
" > "${OPTIONS}"
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
# Copyright (C) 2022 WYATT GROUP
|
# Copyright (C) 2023 WYATT GROUP
|
||||||
# Please see the AUTHORS file for details.
|
# Please see the AUTHORS file for details.
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
@@ -130,4 +136,7 @@ echo "
|
|||||||
include: package:wyatt_analysis/analysis_options.flutter.${new}.yaml
|
include: package:wyatt_analysis/analysis_options.flutter.${new}.yaml
|
||||||
" > "${OPTIONS_FLUTTER}"
|
" > "${OPTIONS_FLUTTER}"
|
||||||
|
|
||||||
|
# Update latest version
|
||||||
|
echo "${new}" > "$LATEST_VERSION"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@@ -1,25 +1,25 @@
|
|||||||
# Copyright (C) 2023 WYATT GROUP
|
# Copyright (C) 2023 WYATT GROUP
|
||||||
# Please see the AUTHORS file for details.
|
# Please see the AUTHORS file for details.
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
# any later version.
|
# any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
name: wyatt_analysis
|
name: wyatt_analysis
|
||||||
description: Lint rules for Dart and Flutter used internally at Wyatt Studio.
|
description: Lint rules for Dart and Flutter used internally at Wyatt Studio.
|
||||||
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_analysis
|
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_analysis
|
||||||
version: 2.4.0
|
version: 2.4.1
|
||||||
|
|
||||||
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: ">=2.12.0 <3.0.0"
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
import 'package:architecture_example/data/models/photo_model.dart';
|
import 'package:architecture_example/data/models/photo_model.dart';
|
||||||
|
|
||||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ import 'package:wyatt_architecture/wyatt_architecture.dart';
|
|||||||
import 'package:wyatt_type_utils/wyatt_type_utils.dart';
|
import 'package:wyatt_type_utils/wyatt_type_utils.dart';
|
||||||
|
|
||||||
class PhotoRepositoryImpl extends PhotoRepository {
|
class PhotoRepositoryImpl extends PhotoRepository {
|
||||||
|
|
||||||
PhotoRepositoryImpl(
|
PhotoRepositoryImpl(
|
||||||
this._photoRemoteDataSource,
|
this._photoRemoteDataSource,
|
||||||
this._albumRemoteDataSource,
|
this._albumRemoteDataSource,
|
||||||
|
|||||||
+3
-3
@@ -1,16 +1,16 @@
|
|||||||
// Copyright (C) 2022 WYATT GROUP
|
// Copyright (C) 2022 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// any later version.
|
// any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,16 +1,16 @@
|
|||||||
// Copyright (C) 2022 WYATT GROUP
|
// Copyright (C) 2022 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// any later version.
|
// any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,16 +1,16 @@
|
|||||||
// Copyright (C) 2022 WYATT GROUP
|
// Copyright (C) 2022 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// any later version.
|
// any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|||||||
-1
@@ -21,7 +21,6 @@ import 'package:architecture_example/domain/repositories/photo_repository.dart';
|
|||||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
||||||
|
|
||||||
class AddPhotoToFavorites extends AsyncUseCase<Photo, List<Photo>> {
|
class AddPhotoToFavorites extends AsyncUseCase<Photo, List<Photo>> {
|
||||||
|
|
||||||
AddPhotoToFavorites(this._photoRepository);
|
AddPhotoToFavorites(this._photoRepository);
|
||||||
final PhotoRepository _photoRepository;
|
final PhotoRepository _photoRepository;
|
||||||
|
|
||||||
|
|||||||
-1
@@ -20,7 +20,6 @@ import 'package:architecture_example/domain/repositories/photo_repository.dart';
|
|||||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
||||||
|
|
||||||
class CheckIfPhotoIsInFavorites extends AsyncUseCase<int, bool> {
|
class CheckIfPhotoIsInFavorites extends AsyncUseCase<int, bool> {
|
||||||
|
|
||||||
CheckIfPhotoIsInFavorites(this._photoRepository);
|
CheckIfPhotoIsInFavorites(this._photoRepository);
|
||||||
final PhotoRepository _photoRepository;
|
final PhotoRepository _photoRepository;
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ import 'package:architecture_example/domain/repositories/photo_repository.dart';
|
|||||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
||||||
|
|
||||||
class DisplayFavorites extends AsyncUseCase<NoParam, List<Photo>> {
|
class DisplayFavorites extends AsyncUseCase<NoParam, List<Photo>> {
|
||||||
|
|
||||||
DisplayFavorites(this._photoRepository);
|
DisplayFavorites(this._photoRepository);
|
||||||
final PhotoRepository _photoRepository;
|
final PhotoRepository _photoRepository;
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ import 'package:architecture_example/domain/repositories/photo_repository.dart';
|
|||||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
||||||
|
|
||||||
class DisplayPhoto extends AsyncUseCase<int, Photo> {
|
class DisplayPhoto extends AsyncUseCase<int, Photo> {
|
||||||
|
|
||||||
DisplayPhoto(this._photoRepository);
|
DisplayPhoto(this._photoRepository);
|
||||||
final PhotoRepository _photoRepository;
|
final PhotoRepository _photoRepository;
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ import 'package:architecture_example/domain/usecases/photos/params/query_paramet
|
|||||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
||||||
|
|
||||||
class OpenAlbum extends AsyncUseCase<QueryParameters, List<Photo>> {
|
class OpenAlbum extends AsyncUseCase<QueryParameters, List<Photo>> {
|
||||||
|
|
||||||
OpenAlbum(this._photoRepository);
|
OpenAlbum(this._photoRepository);
|
||||||
final PhotoRepository _photoRepository;
|
final PhotoRepository _photoRepository;
|
||||||
|
|
||||||
|
|||||||
-1
@@ -15,7 +15,6 @@
|
|||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
class QueryParameters {
|
class QueryParameters {
|
||||||
|
|
||||||
QueryParameters(this.start, this.limit, {this.albumId = -1});
|
QueryParameters(this.start, this.limit, {this.albumId = -1});
|
||||||
final int albumId;
|
final int albumId;
|
||||||
final int? start;
|
final int? start;
|
||||||
|
|||||||
-1
@@ -21,7 +21,6 @@ import 'package:architecture_example/domain/repositories/photo_repository.dart';
|
|||||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
||||||
|
|
||||||
class RemovePhotoFromFavorites extends AsyncUseCase<int, List<Photo>> {
|
class RemovePhotoFromFavorites extends AsyncUseCase<int, List<Photo>> {
|
||||||
|
|
||||||
RemovePhotoFromFavorites(this._photoRepository);
|
RemovePhotoFromFavorites(this._photoRepository);
|
||||||
final PhotoRepository _photoRepository;
|
final PhotoRepository _photoRepository;
|
||||||
|
|
||||||
|
|||||||
-1
@@ -22,7 +22,6 @@ import 'package:architecture_example/domain/usecases/photos/params/query_paramet
|
|||||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
import 'package:wyatt_architecture/wyatt_architecture.dart';
|
||||||
|
|
||||||
class RetrieveAllAlbums extends AsyncUseCase<QueryParameters, List<Album>> {
|
class RetrieveAllAlbums extends AsyncUseCase<QueryParameters, List<Album>> {
|
||||||
|
|
||||||
RetrieveAllAlbums(this._photoRepository);
|
RetrieveAllAlbums(this._photoRepository);
|
||||||
final PhotoRepository _photoRepository;
|
final PhotoRepository _photoRepository;
|
||||||
|
|
||||||
|
|||||||
-1
@@ -33,7 +33,6 @@ EventTransformer<E> throttleDroppable<E>(Duration duration) =>
|
|||||||
(events, mapper) => droppable<E>().call(events.throttle(duration), mapper);
|
(events, mapper) => droppable<E>().call(events.throttle(duration), mapper);
|
||||||
|
|
||||||
class AlbumBloc extends Bloc<AlbumEvent, AlbumState> {
|
class AlbumBloc extends Bloc<AlbumEvent, AlbumState> {
|
||||||
|
|
||||||
AlbumBloc(this._retrieveAllAlbums) : super(const AlbumState()) {
|
AlbumBloc(this._retrieveAllAlbums) : super(const AlbumState()) {
|
||||||
on<AlbumFetched>(
|
on<AlbumFetched>(
|
||||||
_onAlbumFetched,
|
_onAlbumFetched,
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@ class AlbumsScreen extends BlocScreen<AlbumBloc, AlbumEvent, AlbumState> {
|
|||||||
bloc..add(AlbumFetched());
|
bloc..add(AlbumFetched());
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget onWrap(BuildContext context, Widget child) => AlbumsWrapperWidget(
|
Widget parent(BuildContext context, Widget child) => AlbumsWrapperWidget(
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
+5
-2
@@ -22,8 +22,11 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
|
|
||||||
class AlbumsList extends StatefulWidget {
|
class AlbumsList extends StatefulWidget {
|
||||||
const AlbumsList(
|
const AlbumsList({
|
||||||
{required this.albums, required this.hasReachedMax, super.key,});
|
required this.albums,
|
||||||
|
required this.hasReachedMax,
|
||||||
|
super.key,
|
||||||
|
});
|
||||||
|
|
||||||
final List<Album> albums;
|
final List<Album> albums;
|
||||||
final bool hasReachedMax;
|
final bool hasReachedMax;
|
||||||
|
|||||||
-2
@@ -26,7 +26,6 @@ abstract class PhotoDetailsState extends Equatable {
|
|||||||
class PhotoDetailsInitial extends PhotoDetailsState {}
|
class PhotoDetailsInitial extends PhotoDetailsState {}
|
||||||
|
|
||||||
class PhotoDetailsSuccess extends PhotoDetailsState {
|
class PhotoDetailsSuccess extends PhotoDetailsState {
|
||||||
|
|
||||||
const PhotoDetailsSuccess(this.photo, {required this.isFavorite});
|
const PhotoDetailsSuccess(this.photo, {required this.isFavorite});
|
||||||
final Photo photo;
|
final Photo photo;
|
||||||
final bool isFavorite;
|
final bool isFavorite;
|
||||||
@@ -36,7 +35,6 @@ class PhotoDetailsSuccess extends PhotoDetailsState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class PhotoDetailsFailure extends PhotoDetailsState {
|
class PhotoDetailsFailure extends PhotoDetailsState {
|
||||||
|
|
||||||
const PhotoDetailsFailure(this.error);
|
const PhotoDetailsFailure(this.error);
|
||||||
final String error;
|
final String error;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -43,7 +43,7 @@ class PhotoDetailsScreen
|
|||||||
bloc..load(photoId);
|
bloc..load(photoId);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget onWrap(BuildContext context, Widget child) =>
|
Widget parent(BuildContext context, Widget child) =>
|
||||||
PhotoDetailsWrapperWidget(child: child);
|
PhotoDetailsWrapperWidget(child: child);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
-1
@@ -23,7 +23,6 @@ import 'package:flutter_bloc/flutter_bloc.dart';
|
|||||||
part 'favorite_checker_state.dart';
|
part 'favorite_checker_state.dart';
|
||||||
|
|
||||||
class FavoriteCheckerCubit extends Cubit<FavoriteCheckerState> {
|
class FavoriteCheckerCubit extends Cubit<FavoriteCheckerState> {
|
||||||
|
|
||||||
FavoriteCheckerCubit(this._checkIfPhotoIsInFavorites)
|
FavoriteCheckerCubit(this._checkIfPhotoIsInFavorites)
|
||||||
: super(FavoriteCheckerInitial());
|
: super(FavoriteCheckerInitial());
|
||||||
final CheckIfPhotoIsInFavorites _checkIfPhotoIsInFavorites;
|
final CheckIfPhotoIsInFavorites _checkIfPhotoIsInFavorites;
|
||||||
|
|||||||
-2
@@ -10,7 +10,6 @@ abstract class FavoriteCheckerState extends Equatable {
|
|||||||
class FavoriteCheckerInitial extends FavoriteCheckerState {}
|
class FavoriteCheckerInitial extends FavoriteCheckerState {}
|
||||||
|
|
||||||
class FavoriteCheckerSuccess extends FavoriteCheckerState {
|
class FavoriteCheckerSuccess extends FavoriteCheckerState {
|
||||||
|
|
||||||
const FavoriteCheckerSuccess(this.photoId, {required this.isFavorite});
|
const FavoriteCheckerSuccess(this.photoId, {required this.isFavorite});
|
||||||
final int photoId;
|
final int photoId;
|
||||||
final bool isFavorite;
|
final bool isFavorite;
|
||||||
@@ -20,7 +19,6 @@ class FavoriteCheckerSuccess extends FavoriteCheckerState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class FavoriteCheckerFailure extends FavoriteCheckerState {
|
class FavoriteCheckerFailure extends FavoriteCheckerState {
|
||||||
|
|
||||||
const FavoriteCheckerFailure(this.error);
|
const FavoriteCheckerFailure(this.error);
|
||||||
final String error;
|
final String error;
|
||||||
|
|
||||||
|
|||||||
-1
@@ -33,7 +33,6 @@ EventTransformer<E> throttleDroppable<E>(Duration duration) =>
|
|||||||
(events, mapper) => droppable<E>().call(events.throttle(duration), mapper);
|
(events, mapper) => droppable<E>().call(events.throttle(duration), mapper);
|
||||||
|
|
||||||
class PhotoBloc extends Bloc<PhotoEvent, PhotoState> {
|
class PhotoBloc extends Bloc<PhotoEvent, PhotoState> {
|
||||||
|
|
||||||
PhotoBloc(this._openAlbum) : super(const PhotoState()) {
|
PhotoBloc(this._openAlbum) : super(const PhotoState()) {
|
||||||
on<PhotoFetched>(
|
on<PhotoFetched>(
|
||||||
_onPhotoFetched,
|
_onPhotoFetched,
|
||||||
|
|||||||
-1
@@ -24,7 +24,6 @@ abstract class PhotoEvent extends Equatable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class PhotoFetched extends PhotoEvent {
|
class PhotoFetched extends PhotoEvent {
|
||||||
|
|
||||||
const PhotoFetched(this.albumId);
|
const PhotoFetched(this.albumId);
|
||||||
final int albumId;
|
final int albumId;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@ class PhotosScreen extends BlocScreen<PhotoBloc, PhotoEvent, PhotoState> {
|
|||||||
bloc..add(PhotoFetched(albumId));
|
bloc..add(PhotoFetched(albumId));
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget onWrap(BuildContext context, Widget child) => PhotosWrapperWidget(
|
Widget parent(BuildContext context, Widget child) => PhotosWrapperWidget(
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
+13
-13
@@ -71,17 +71,17 @@ class _PhotosGridState extends State<PhotosGrid> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => GridView.builder(
|
Widget build(BuildContext context) => GridView.builder(
|
||||||
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
|
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
|
||||||
crossAxisSpacing: 4,
|
crossAxisSpacing: 4,
|
||||||
mainAxisSpacing: 4,
|
mainAxisSpacing: 4,
|
||||||
crossAxisCount: 4,
|
crossAxisCount: 4,
|
||||||
),
|
),
|
||||||
itemCount: widget.hasReachedMax
|
itemCount: widget.hasReachedMax
|
||||||
? widget.photos.length
|
? widget.photos.length
|
||||||
: widget.photos.length + 1,
|
: widget.photos.length + 1,
|
||||||
controller: _scrollController,
|
controller: _scrollController,
|
||||||
itemBuilder: (context, index) => index >= widget.photos.length
|
itemBuilder: (context, index) => index >= widget.photos.length
|
||||||
? const BottomLoader()
|
? const BottomLoader()
|
||||||
: PhotosGridThumbnail(photo: widget.photos[index]),
|
: PhotosGridThumbnail(photo: widget.photos[index]),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-1
@@ -55,7 +55,10 @@ class PhotosGridThumbnail
|
|||||||
),
|
),
|
||||||
if (state is FavoriteCheckerSuccess && state.isFavorite) ...[
|
if (state is FavoriteCheckerSuccess && state.isFavorite) ...[
|
||||||
const Positioned(
|
const Positioned(
|
||||||
bottom: 10, right: 10, child: Icon(Icons.favorite),)
|
bottom: 10,
|
||||||
|
right: 10,
|
||||||
|
child: Icon(Icons.favorite),
|
||||||
|
)
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ dev_dependencies:
|
|||||||
wyatt_analysis:
|
wyatt_analysis:
|
||||||
git:
|
git:
|
||||||
url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages
|
url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages
|
||||||
ref: wyatt_analysis-v2.4.0
|
ref: wyatt_analysis-v2.4.1
|
||||||
path: packages/wyatt_analysis
|
path: packages/wyatt_analysis
|
||||||
|
|
||||||
# For information on the generic Dart part of this file, see the
|
# For information on the generic Dart part of this file, see the
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
import 'package:wyatt_type_utils/wyatt_type_utils.dart';
|
import 'package:wyatt_type_utils/wyatt_type_utils.dart';
|
||||||
|
|
||||||
abstract class AppException implements Exception {
|
abstract class AppException implements Exception {
|
||||||
|
|
||||||
AppException([this.message]);
|
AppException([this.message]);
|
||||||
final String? message;
|
final String? message;
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
// Copyright (C) 2022 WYATT GROUP
|
// Copyright (C) 2022 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// any later version.
|
// any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
// Copyright (C) 2022 WYATT GROUP
|
// Copyright (C) 2022 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// any later version.
|
// any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,16 +1,16 @@
|
|||||||
// Copyright (C) 2022 WYATT GROUP
|
// Copyright (C) 2022 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// any later version.
|
// any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
// Copyright (C) 2022 WYATT GROUP
|
// Copyright (C) 2022 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// any later version.
|
// any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,16 +1,16 @@
|
|||||||
// Copyright (C) 2022 WYATT GROUP
|
// Copyright (C) 2022 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// any later version.
|
// any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
// Copyright (C) 2022 WYATT GROUP
|
// Copyright (C) 2022 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// any later version.
|
// any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
// Copyright (C) 2022 WYATT GROUP
|
// Copyright (C) 2022 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// any later version.
|
// any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
// Copyright (C) 2022 WYATT GROUP
|
// Copyright (C) 2022 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// any later version.
|
// any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
// Copyright (C) 2022 WYATT GROUP
|
// Copyright (C) 2022 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// any later version.
|
// any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
// Copyright (C) 2022 WYATT GROUP
|
// Copyright (C) 2022 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// any later version.
|
// any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|||||||
@@ -24,4 +24,4 @@ dev_dependencies:
|
|||||||
|
|
||||||
wyatt_analysis:
|
wyatt_analysis:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^2.4.0
|
version: ^2.4.1
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
# Flutter/Dart/Pub related
|
# Flutter/Dart/Pub related
|
||||||
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
|
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
|
||||||
/pubspec.lock
|
/pubspec.lock
|
||||||
|
**/doc/api/
|
||||||
.dart_tool/
|
.dart_tool/
|
||||||
.packages
|
.packages
|
||||||
build/
|
build/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
* Copyright (C) 2023 WYATT GROUP
|
* Copyright (C) 2022 WYATT GROUP
|
||||||
* Please see the AUTHORS file for details.
|
* Please see the AUTHORS file for details.
|
||||||
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
* the Free Software Foundation, either version 3 of the License, or
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
* any later version.
|
* any later version.
|
||||||
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
@@ -19,7 +19,9 @@
|
|||||||
# Flutter - Authentication BLoC
|
# Flutter - Authentication BLoC
|
||||||
|
|
||||||
<p align="left">
|
<p align="left">
|
||||||
<a href="https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_analysis"><img src="https://img.shields.io/badge/Style-Wyatt%20Analysis-blue.svg?style=flat-square" alt="Style: Wyatt Analysis" /></a>
|
<a href="https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_analysis">
|
||||||
|
<img src="https://img.shields.io/badge/Style-Wyatt%20Analysis-blue.svg?style=flat-square" alt="Style: Wyatt Analysis" />
|
||||||
|
</a>
|
||||||
<img src="https://img.shields.io/badge/SDK-Flutter-blue?style=flat-square" alt="SDK: Flutter" />
|
<img src="https://img.shields.io/badge/SDK-Flutter-blue?style=flat-square" alt="SDK: Flutter" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -27,195 +29,37 @@ Authentication Bloc for Flutter.
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* 🧐 Wyatt Architecture
|
- Wyatt Architecture
|
||||||
* 🧱 Entities
|
- Entities:
|
||||||
- Account -> Contains account information from provider.
|
- Account : AccountModel -> Contains account information from provider
|
||||||
- Session -> Contains account and associated data retrieved from an external source.
|
- AccountWrapper : AccountWrapperModel -> Contains account and extra data.
|
||||||
- AuthenticationChangeEvent -> Describes an event in authentication change (sign in, sign up, sign out, etc...)
|
- Data Sources:
|
||||||
- SessionWrapper -> Contains latest authentication change event and session.
|
- Local:
|
||||||
* 🔑 Powerful and secured authentication repository
|
- Cached Authentication Data : AuthenticationCacheDataSourceImpl -> Provides a cache implementation
|
||||||
* 🔥 Multiple data sources
|
- Remote:
|
||||||
- Mock
|
- Remote Authentication Data : AuthenticationFirebaseDataSourceImpl -> Provides a proxy to FirebaseAuth
|
||||||
- Firebase
|
- Repositories:
|
||||||
* 🧊 Cubits, why make it complicated when you can make it simple?
|
- AuthenticationRepository : AuthenticationRepositoryImpl -> Provides all authentication methods
|
||||||
- Goes to the essential.
|
- Features:
|
||||||
* 📐 Consistent
|
- Authentication:
|
||||||
- Every class have same naming convention
|
- AuthenticationBuilder : widget to build reactive view from authentication state
|
||||||
* 🧪 Tested
|
- AuthenticationCubit : tracks every auth changes, have sign out capability.
|
||||||
* 📚 Documented: [available here](./doc/api/index.md)
|
- SignUp:
|
||||||
|
- SignUpCubit: implementation of a FormDataCubit from `wyatt_form_bloc` for the sign up
|
||||||
|
- SignIn:
|
||||||
|
- SignUpCubit: implementation of a FormDataCubit from `wyatt_form_bloc` for the sign in
|
||||||
|
- Consistent
|
||||||
|
* Every class have same naming convention
|
||||||
|
- Tested
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
Simply add `wyatt_authentication_bloc` in `pubspec.yaml` , then
|
Simply add `wyatt_authentication_bloc` in `pubspec.yaml`, then
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
import 'package:wyatt_authentication_bloc/wyatt_authentication_bloc.dart';
|
import 'package:wyatt_authentication_bloc/wyatt_authentication_bloc.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
### Data source
|
## Usage
|
||||||
|
|
||||||
The first step is to provide a data source.
|
// TODO
|
||||||
|
|
||||||
```dart
|
|
||||||
getIt.registerLazySingleton<AuthenticationRemoteDataSource<int>>(
|
|
||||||
() => AuthenticationFirebaseDataSourceImpl<int>(
|
|
||||||
firebaseAuth: FirebaseAuth.instance,
|
|
||||||
googleSignIn:
|
|
||||||
GoogleSignIn(clientId: DefaultFirebaseOptions.ios.iosClientId)),
|
|
||||||
);
|
|
||||||
```
|
|
||||||
|
|
||||||
> Here we use GetIt (see example project)
|
|
||||||
|
|
||||||
### Repository
|
|
||||||
|
|
||||||
Then you can configure your repository.
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final AuthenticationRepository<int> authenticationRepository = AuthenticationRepositoryImpl(
|
|
||||||
authenticationRemoteDataSource:
|
|
||||||
getIt<AuthenticationRemoteDataSource<int>>(),
|
|
||||||
customPasswordValidator: const CustomPassword.pure(),
|
|
||||||
extraSignUpInputs: [
|
|
||||||
FormInput(
|
|
||||||
AuthFormField.confirmPassword,
|
|
||||||
const ConfirmedPassword.pure(),
|
|
||||||
metadata: const FormInputMetadata<void>(export: false),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
|
||||||
```
|
|
||||||
|
|
||||||
> Here we pass some extra inputs for the sign up, and a custom password validator.
|
|
||||||
|
|
||||||
### Cubits
|
|
||||||
|
|
||||||
It is necessary to implement each cubit. Don't panic, most of the work is already done 😊 you just have to customize the logic of these.
|
|
||||||
|
|
||||||
In each of these cubits it is necessary to overload the various callbacks.
|
|
||||||
|
|
||||||
> Here the associated data `Data` is a `int`
|
|
||||||
|
|
||||||
#### Authentication
|
|
||||||
|
|
||||||
In the authentication are managed, the refresh, the deletion of account or the disconnection.
|
|
||||||
|
|
||||||
```dart
|
|
||||||
class ExampleAuthenticationCubit extends AuthenticationCubit<int> {
|
|
||||||
ExampleAuthenticationCubit({required super.authenticationRepository});
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onReauthenticate(Result<Account, AppException> result) async {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onRefresh(Result<Account, AppException> result) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onSignInFromCache(SessionWrapper<int> wrapper) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<void> onSignOut() {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<void> onDelete() {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Sign Up
|
|
||||||
|
|
||||||
```dart
|
|
||||||
class ExampleSignUpCubit extends SignUpCubit<int> {
|
|
||||||
ExampleSignUpCubit({
|
|
||||||
required super.authenticationRepository,
|
|
||||||
});
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onSignUpWithEmailAndPassword(Result<Account, AppException> result, WyattForm form) async {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Sign In
|
|
||||||
|
|
||||||
```dart
|
|
||||||
class ExampleSignInCubit extends SignInCubit<int> {
|
|
||||||
ExampleSignInCubit({
|
|
||||||
required super.authenticationRepository,
|
|
||||||
});
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onSignInWithEmailAndPassword(Result<Account, AppException> result, WyattForm form) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onSignInAnonymously(Result<Account, AppException> result, WyattForm form) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onSignInWithGoogle(Result<Account, AppException> result, WyattForm form) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
After setting up all these cubits you can provide them in the application. And that's it!
|
|
||||||
|
|
||||||
```dart
|
|
||||||
BlocProvider<SignUpCubit<int>>(
|
|
||||||
create: (_) => ExampleSignUpCubit(
|
|
||||||
authenticationRepository: authenticationRepository,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
BlocProvider<SignInCubit<int>>(
|
|
||||||
create: (_) => ExampleSignInCubit(
|
|
||||||
authenticationRepository: authenticationRepository,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
```
|
|
||||||
|
|
||||||
### Widgets
|
|
||||||
|
|
||||||
Widgets are provided to make your life easier. Starting with the `AuthenticationBuilder` which allows you to build according to the authentication state.
|
|
||||||
|
|
||||||
```dart
|
|
||||||
AuthenticationBuilder<int>(
|
|
||||||
authenticated: (context, sessionWrapper) => Text(
|
|
||||||
'Logged as ${sessionWrapper.session?.account.email} | GeneratedId is ${sessionWrapper.session?.data}'),
|
|
||||||
unauthenticated: (context) =>
|
|
||||||
const Text('Not logged (unauthenticated)'),
|
|
||||||
unknown: (context) => const Text('Not logged (unknown)'),
|
|
||||||
),
|
|
||||||
```
|
|
||||||
|
|
||||||
A `BuildContext` extension is also available to access certain attributes more quickly.
|
|
||||||
|
|
||||||
```dart
|
|
||||||
Text('Home | ${context.account<AuthenticationCubit<int>, int>()?.email}'),
|
|
||||||
```
|
|
||||||
|
|
||||||
Listeners are used to listen to the status of the sign in and sign up forms.
|
|
||||||
|
|
||||||
```dart
|
|
||||||
return SignInListener<int>(
|
|
||||||
onError: (context, status, errorMessage) => ScaffoldMessenger.of(context)
|
|
||||||
..hideCurrentSnackBar()
|
|
||||||
..showSnackBar(
|
|
||||||
SnackBar(content: Text(errorMessage ?? 'Sign In Failure')),
|
|
||||||
),
|
|
||||||
child: ...
|
|
||||||
);
|
|
||||||
```
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# 404
|
|
||||||
|
|
||||||
Oops, something's gone wrong :-(
|
|
||||||
|
|
||||||
You've tried to visit a page that doesn't exist. Luckily this site has other
|
|
||||||
[pages](index.md).
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
[]
|
|
||||||
File diff suppressed because one or more lines are too long
@@ -1,214 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# wyatt_authentication_bloc - Dart API docs
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
* Copyright (C) 2023 WYATT GROUP
|
|
||||||
* Please see the AUTHORS file for details.
|
|
||||||
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* any later version.
|
|
||||||
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
<h1 id="flutter---authentication-bloc">Flutter - Authentication BLoC</h1><p align="left">
|
|
||||||
<a href="https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_analysis"><img src="https://img.shields.io/badge/Style-Wyatt%20Analysis-blue.svg?style=flat-square" alt="Style: Wyatt Analysis"></a>
|
|
||||||
<img src="https://img.shields.io/badge/SDK-Flutter-blue?style=flat-square" alt="SDK: Flutter">
|
|
||||||
</p>
|
|
||||||
<p>Authentication Bloc for Flutter.</p>
|
|
||||||
<h2 id="features">Features</h2>
|
|
||||||
<ul>
|
|
||||||
<li>🧐 Wyatt Architecture</li>
|
|
||||||
<li>🧱 Entities
|
|
||||||
<ul>
|
|
||||||
<li>Account -> Contains account information from provider.</li>
|
|
||||||
<li>Session -> Contains account and associated data retrieved from an external source.</li>
|
|
||||||
<li>AuthenticationChangeEvent -> Describes an event in authentication change (sign in, sign up, sign out, etc...)</li>
|
|
||||||
<li>SessionWrapper -> Contains latest authentication change event and session.</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>🔑 Powerful and secured authentication repository</li>
|
|
||||||
<li>🔥 Multiple data sources
|
|
||||||
<ul>
|
|
||||||
<li>Mock</li>
|
|
||||||
<li>Firebase</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>🧊 Cubits, why make it complicated when you can make it simple?
|
|
||||||
<ul>
|
|
||||||
<li>Goes to the essential.</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>📐 Consistent
|
|
||||||
<ul>
|
|
||||||
<li>Every class have same naming convention</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>🧪 Tested</li>
|
|
||||||
<li>📚 Documented: <a href="./doc/api/index.md">available here</a></li>
|
|
||||||
</ul>
|
|
||||||
<h2 id="getting-started">Getting started</h2>
|
|
||||||
<p>Simply add <code>wyatt_authentication_bloc</code> in <code>pubspec.yaml</code> , then</p>
|
|
||||||
<pre class="language-dart"><code class="language-dart">import 'package:wyatt_authentication_bloc/wyatt_authentication_bloc.dart';
|
|
||||||
</code></pre>
|
|
||||||
<h3 id="data-source">Data source</h3>
|
|
||||||
<p>The first step is to provide a data source.</p>
|
|
||||||
<pre class="language-dart"><code class="language-dart">getIt.registerLazySingleton<AuthenticationRemoteDataSource<int>>(
|
|
||||||
() => AuthenticationFirebaseDataSourceImpl<int>(
|
|
||||||
firebaseAuth: FirebaseAuth.instance,
|
|
||||||
googleSignIn:
|
|
||||||
GoogleSignIn(clientId: DefaultFirebaseOptions.ios.iosClientId)),
|
|
||||||
);
|
|
||||||
</code></pre>
|
|
||||||
<blockquote>
|
|
||||||
<p>Here we use GetIt (see example project)</p>
|
|
||||||
</blockquote>
|
|
||||||
<h3 id="repository">Repository</h3>
|
|
||||||
<p>Then you can configure your repository.</p>
|
|
||||||
<pre class="language-dart"><code class="language-dart">final AuthenticationRepository<int> authenticationRepository = AuthenticationRepositoryImpl(
|
|
||||||
authenticationRemoteDataSource:
|
|
||||||
getIt<AuthenticationRemoteDataSource<int>>(),
|
|
||||||
customPasswordValidator: const CustomPassword.pure(),
|
|
||||||
extraSignUpInputs: [
|
|
||||||
FormInput(
|
|
||||||
AuthFormField.confirmPassword,
|
|
||||||
const ConfirmedPassword.pure(),
|
|
||||||
metadata: const FormInputMetadata<void>(export: false),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
|
||||||
</code></pre>
|
|
||||||
<blockquote>
|
|
||||||
<p>Here we pass some extra inputs for the sign up, and a custom password validator.</p>
|
|
||||||
</blockquote>
|
|
||||||
<h3 id="cubits">Cubits</h3>
|
|
||||||
<p>It is necessary to implement each cubit. Don't panic, most of the work is already done 😊 you just have to customize the logic of these.</p>
|
|
||||||
<p>In each of these cubits it is necessary to overload the various callbacks.</p>
|
|
||||||
<blockquote>
|
|
||||||
<p>Here the associated data <code>Data</code> is a <code>int</code></p>
|
|
||||||
</blockquote>
|
|
||||||
<h4 id="authentication">Authentication</h4>
|
|
||||||
<p>In the authentication are managed, the refresh, the deletion of account or the disconnection.</p>
|
|
||||||
<pre class="language-dart"><code class="language-dart">class ExampleAuthenticationCubit extends AuthenticationCubit<int> {
|
|
||||||
ExampleAuthenticationCubit({required super.authenticationRepository});
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onReauthenticate(Result<Account, AppException> result) async {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onRefresh(Result<Account, AppException> result) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onSignInFromCache(SessionWrapper<int> wrapper) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<void> onSignOut() {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<void> onDelete() {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</code></pre>
|
|
||||||
<h4 id="sign-up">Sign Up</h4>
|
|
||||||
<pre class="language-dart"><code class="language-dart">class ExampleSignUpCubit extends SignUpCubit<int> {
|
|
||||||
ExampleSignUpCubit({
|
|
||||||
required super.authenticationRepository,
|
|
||||||
});
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onSignUpWithEmailAndPassword(Result<Account, AppException> result, WyattForm form) async {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</code></pre>
|
|
||||||
<h4 id="sign-in">Sign In</h4>
|
|
||||||
<pre class="language-dart"><code class="language-dart">class ExampleSignInCubit extends SignInCubit<int> {
|
|
||||||
ExampleSignInCubit({
|
|
||||||
required super.authenticationRepository,
|
|
||||||
});
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onSignInWithEmailAndPassword(Result<Account, AppException> result, WyattForm form) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onSignInAnonymously(Result<Account, AppException> result, WyattForm form) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
FutureOrResult<int?> onSignInWithGoogle(Result<Account, AppException> result, WyattForm form) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</code></pre>
|
|
||||||
<p>After setting up all these cubits you can provide them in the application. And that's it!</p>
|
|
||||||
<pre class="language-dart"><code class="language-dart">BlocProvider<SignUpCubit<int>>(
|
|
||||||
create: (_) => ExampleSignUpCubit(
|
|
||||||
authenticationRepository: authenticationRepository,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
BlocProvider<SignInCubit<int>>(
|
|
||||||
create: (_) => ExampleSignInCubit(
|
|
||||||
authenticationRepository: authenticationRepository,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
</code></pre>
|
|
||||||
<h3 id="widgets">Widgets</h3>
|
|
||||||
<p>Widgets are provided to make your life easier. Starting with the <code>AuthenticationBuilder</code> which allows you to build according to the authentication state.</p>
|
|
||||||
<pre class="language-dart"><code class="language-dart">AuthenticationBuilder<int>(
|
|
||||||
authenticated: (context, sessionWrapper) => Text(
|
|
||||||
'Logged as ${sessionWrapper.session?.account.email} | GeneratedId is ${sessionWrapper.session?.data}'),
|
|
||||||
unauthenticated: (context) =>
|
|
||||||
const Text('Not logged (unauthenticated)'),
|
|
||||||
unknown: (context) => const Text('Not logged (unknown)'),
|
|
||||||
),
|
|
||||||
</code></pre>
|
|
||||||
<p>A <code>BuildContext</code> extension is also available to access certain attributes more quickly.</p>
|
|
||||||
<pre class="language-dart"><code class="language-dart">Text('Home | ${context.account<AuthenticationCubit<int>, int>()?.email}'),
|
|
||||||
</code></pre>
|
|
||||||
<p>Listeners are used to listen to the status of the sign in and sign up forms.</p>
|
|
||||||
<pre class="language-dart"><code class="language-dart">return SignInListener<int>(
|
|
||||||
onError: (context, status, errorMessage) => ScaffoldMessenger.of(context)
|
|
||||||
..hideCurrentSnackBar()
|
|
||||||
..showSnackBar(
|
|
||||||
SnackBar(content: Text(errorMessage ?? 'Sign In Failure')),
|
|
||||||
),
|
|
||||||
child: ...
|
|
||||||
);
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
|
|
||||||
## Libraries
|
|
||||||
|
|
||||||
##### [wyatt_authentication_bloc](wyatt_authentication_bloc/wyatt_authentication_bloc-library.md)
|
|
||||||
An authentication library for BLoC.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# 404
|
|
||||||
|
|
||||||
Oops, something's gone wrong :-(
|
|
||||||
|
|
||||||
You've tried to visit a page that doesn't exist. Luckily this site has other
|
|
||||||
[pages](index.md).
|
|
||||||
-237
@@ -1,237 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Account class
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Represents a user <a href="../wyatt_authentication_bloc/Account-class.md">Account</a> in the
|
|
||||||
various identity provisioning systems.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Inheritance**
|
|
||||||
|
|
||||||
- [Object](https://api.flutter.dev/flutter/dart-core/Object-class.html)
|
|
||||||
- [Equatable](https://pub.dev/documentation/equatable/2.0.5/equatable/Equatable-class.html)
|
|
||||||
- Account
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Implementers**
|
|
||||||
|
|
||||||
- [AccountModel](../wyatt_authentication_bloc/AccountModel-class.md)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Constructors
|
|
||||||
|
|
||||||
[Account](../wyatt_authentication_bloc/Account/Account.md) ({required [String](https://api.flutter.dev/flutter/dart-core/String-class.html) id, required [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html) isAnonymous, required [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html) emailVerified, required [String](https://api.flutter.dev/flutter/dart-core/String-class.html) providerId, [String](https://api.flutter.dev/flutter/dart-core/String-class.html)? email, [String](https://api.flutter.dev/flutter/dart-core/String-class.html)? phoneNumber, [String](https://api.flutter.dev/flutter/dart-core/String-class.html)? photoURL, [DateTime](https://api.flutter.dev/flutter/dart-core/DateTime-class.html)? creationTime, [DateTime](https://api.flutter.dev/flutter/dart-core/DateTime-class.html)? lastSignInTime, [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)? isNewUser, [String](https://api.flutter.dev/flutter/dart-core/String-class.html)? accessToken, [String](https://api.flutter.dev/flutter/dart-core/String-class.html)? refreshToken})
|
|
||||||
|
|
||||||
_const_
|
|
||||||
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
##### [accessToken](../wyatt_authentication_bloc/Account/accessToken.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The user access token
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [creationTime](../wyatt_authentication_bloc/Account/creationTime.md) → [DateTime](https://api.flutter.dev/flutter/dart-core/DateTime-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Returns the users account creation time.
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [email](../wyatt_authentication_bloc/Account/email.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The users email address.
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [emailVerified](../wyatt_authentication_bloc/Account/emailVerified.md) → [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Returns whether the users email address has been verified.
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [hashCode](https://pub.dev/documentation/equatable/2.0.5/equatable/Equatable/hashCode.html) → [int](https://api.flutter.dev/flutter/dart-core/int-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The hash code for this object.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [id](../wyatt_authentication_bloc/Account/id.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The user's unique ID.
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [isAnonymous](../wyatt_authentication_bloc/Account/isAnonymous.md) → [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Returns whether the user is a anonymous.
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [isNewUser](../wyatt_authentication_bloc/Account/isNewUser.md) → [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Whether the user account has been recently created.
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [lastSignInTime](../wyatt_authentication_bloc/Account/lastSignInTime.md) → [DateTime](https://api.flutter.dev/flutter/dart-core/DateTime-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
When the user last signed in as dictated by the server clock.
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [phoneNumber](../wyatt_authentication_bloc/Account/phoneNumber.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Returns the users phone number.
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [photoURL](../wyatt_authentication_bloc/Account/photoURL.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Returns a photo URL for the user.
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [props](../wyatt_authentication_bloc/Account/props.md) → [List](https://api.flutter.dev/flutter/dart-core/List-class.html)<[Object](https://api.flutter.dev/flutter/dart-core/Object-class.html)?>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The list of properties that will be used to determine whether
|
|
||||||
two instances are equal.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">override</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [providerId](../wyatt_authentication_bloc/Account/providerId.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The provider ID for the user.
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [refreshToken](../wyatt_authentication_bloc/Account/refreshToken.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The user refresh token
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [runtimeType](https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html) → [Type](https://api.flutter.dev/flutter/dart-core/Type-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A representation of the runtime type of the object.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [stringify](../wyatt_authentication_bloc/Account/stringify.md) → [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If set to <code>true</code>, the <a href="https://pub.dev/documentation/equatable/2.0.5/equatable/Equatable/toString.html">toString</a> method will be overridden to output
|
|
||||||
this instance's <a href="../wyatt_authentication_bloc/Account/props.md">props</a>.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">override</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Methods
|
|
||||||
|
|
||||||
##### [noSuchMethod](https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html)([Invocation](https://api.flutter.dev/flutter/dart-core/Invocation-class.html) invocation) dynamic
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Invoked when a non-existent method or property is accessed.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [toString](https://pub.dev/documentation/equatable/2.0.5/equatable/Equatable/toString.html)() [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A string representation of this object.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Operators
|
|
||||||
|
|
||||||
##### [operator ==](https://pub.dev/documentation/equatable/2.0.5/equatable/Equatable/operator_equals.html)([Object](https://api.flutter.dev/flutter/dart-core/Object-class.html) other) [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The equality operator.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-43
@@ -1,43 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Account constructor
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
const
|
|
||||||
Account({required [String](https://api.flutter.dev/flutter/dart-core/String-class.html) id, required [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html) isAnonymous, required [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html) emailVerified, required [String](https://api.flutter.dev/flutter/dart-core/String-class.html) providerId, [String](https://api.flutter.dev/flutter/dart-core/String-class.html)? email, [String](https://api.flutter.dev/flutter/dart-core/String-class.html)? phoneNumber, [String](https://api.flutter.dev/flutter/dart-core/String-class.html)? photoURL, [DateTime](https://api.flutter.dev/flutter/dart-core/DateTime-class.html)? creationTime, [DateTime](https://api.flutter.dev/flutter/dart-core/DateTime-class.html)? lastSignInTime, [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)? isNewUser, [String](https://api.flutter.dev/flutter/dart-core/String-class.html)? accessToken, [String](https://api.flutter.dev/flutter/dart-core/String-class.html)? refreshToken})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
const Account({
|
|
||||||
required this.id,
|
|
||||||
required this.isAnonymous,
|
|
||||||
required this.emailVerified,
|
|
||||||
required this.providerId,
|
|
||||||
this.email,
|
|
||||||
this.phoneNumber,
|
|
||||||
this.photoURL,
|
|
||||||
this.creationTime,
|
|
||||||
this.lastSignInTime,
|
|
||||||
this.isNewUser,
|
|
||||||
this.accessToken,
|
|
||||||
this.refreshToken,
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# accessToken property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[String](https://api.flutter.dev/flutter/dart-core/String-class.html)? accessToken
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>The user access token</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final String? accessToken;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-35
@@ -1,35 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# creationTime property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[DateTime](https://api.flutter.dev/flutter/dart-core/DateTime-class.html)? creationTime
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Returns the users account creation time.</p>
|
|
||||||
<p>When this account was created as dictated by the server clock.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final DateTime? creationTime;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# email property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[String](https://api.flutter.dev/flutter/dart-core/String-class.html)? email
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>The users email address.</p>
|
|
||||||
<p>Will be <code>null</code> if signing in anonymously.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final String? email;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-35
@@ -1,35 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# emailVerified property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[bool](https://api.flutter.dev/flutter/dart-core/bool-class.html) emailVerified
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Returns whether the users email address has been verified.</p>
|
|
||||||
<p>To send a verification email, see <code>SendEmailVerification</code>.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final bool emailVerified;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# id property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[String](https://api.flutter.dev/flutter/dart-core/String-class.html) id
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>The user's unique ID.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final String id;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# isAnonymous property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[bool](https://api.flutter.dev/flutter/dart-core/bool-class.html) isAnonymous
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Returns whether the user is a anonymous.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final bool isAnonymous;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# isNewUser property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)? isNewUser
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Whether the user account has been recently created.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final bool? isNewUser;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# lastSignInTime property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[DateTime](https://api.flutter.dev/flutter/dart-core/DateTime-class.html)? lastSignInTime
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>When the user last signed in as dictated by the server clock.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final DateTime? lastSignInTime;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# phoneNumber property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[String](https://api.flutter.dev/flutter/dart-core/String-class.html)? phoneNumber
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Returns the users phone number.</p>
|
|
||||||
<p>This property will be <code>null</code> if the user has not signed in or been has
|
|
||||||
their phone number linked.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final String? phoneNumber;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# photoURL property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[String](https://api.flutter.dev/flutter/dart-core/String-class.html)? photoURL
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Returns a photo URL for the user.</p>
|
|
||||||
<p>This property will be populated if the user has signed in or been linked
|
|
||||||
with a 3rd party OAuth provider (such as Google).</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final String? photoURL;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# props property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Annotations**
|
|
||||||
|
|
||||||
- @[override](https://api.flutter.dev/flutter/dart-core/override-constant.html)
|
|
||||||
[List](https://api.flutter.dev/flutter/dart-core/List-class.html)<[Object](https://api.flutter.dev/flutter/dart-core/Object-class.html)?> props
|
|
||||||
|
|
||||||
_<span class="feature">override</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>The list of properties that will be used to determine whether
|
|
||||||
two instances are equal.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
@override
|
|
||||||
List<Object?> get props => [
|
|
||||||
id,
|
|
||||||
isAnonymous,
|
|
||||||
email,
|
|
||||||
emailVerified,
|
|
||||||
phoneNumber,
|
|
||||||
photoURL,
|
|
||||||
creationTime,
|
|
||||||
lastSignInTime,
|
|
||||||
providerId,
|
|
||||||
isNewUser,
|
|
||||||
accessToken,
|
|
||||||
refreshToken,
|
|
||||||
];
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# providerId property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[String](https://api.flutter.dev/flutter/dart-core/String-class.html) providerId
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>The provider ID for the user.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final String providerId;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# refreshToken property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[String](https://api.flutter.dev/flutter/dart-core/String-class.html)? refreshToken
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>The user refresh token</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final String? refreshToken;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-47
@@ -1,47 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# stringify property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Annotations**
|
|
||||||
|
|
||||||
- @[override](https://api.flutter.dev/flutter/dart-core/override-constant.html)
|
|
||||||
[bool](https://api.flutter.dev/flutter/dart-core/bool-class.html) stringify
|
|
||||||
|
|
||||||
_<span class="feature">override</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>If set to <code>true</code>, the <a href="https://pub.dev/documentation/equatable/2.0.5/equatable/Equatable/toString.html">toString</a> method will be overridden to output
|
|
||||||
this instance's <a href="../../wyatt_authentication_bloc/Account/props.md">props</a>.</p>
|
|
||||||
<p>A global default value for <a href="../../wyatt_authentication_bloc/Account/stringify.md">stringify</a> can be set using
|
|
||||||
<code>EquatableConfig.stringify</code>.</p>
|
|
||||||
<p>If this instance's <a href="../../wyatt_authentication_bloc/Account/stringify.md">stringify</a> is set to null, the value of
|
|
||||||
<code>EquatableConfig.stringify</code> will be used instead. This defaults to
|
|
||||||
<code>false</code>.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
@override
|
|
||||||
bool get stringify => true;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-247
@@ -1,247 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# AccountModel class
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Account Model to parse Firebase User data</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Inheritance**
|
|
||||||
|
|
||||||
- [Object](https://api.flutter.dev/flutter/dart-core/Object-class.html)
|
|
||||||
- [Equatable](https://pub.dev/documentation/equatable/2.0.5/equatable/Equatable-class.html)
|
|
||||||
- [Account](../wyatt_authentication_bloc/Account-class.md)
|
|
||||||
- AccountModel
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Constructors
|
|
||||||
|
|
||||||
[AccountModel.fromFirebaseUser](../wyatt_authentication_bloc/AccountModel/AccountModel.fromFirebaseUser.md) ([User](https://pub.dev/documentation/firebase_auth/4.2.0/firebase_auth/User-class.html)? user, {[String](https://api.flutter.dev/flutter/dart-core/String-class.html)? accessToken})
|
|
||||||
|
|
||||||
_factory_
|
|
||||||
|
|
||||||
[AccountModel.fromFirebaseUserCredential](../wyatt_authentication_bloc/AccountModel/AccountModel.fromFirebaseUserCredential.md) ([UserCredential](https://pub.dev/documentation/firebase_auth/4.2.0/firebase_auth/UserCredential-class.html)? userCredential)
|
|
||||||
|
|
||||||
_factory_
|
|
||||||
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
##### [accessToken](../wyatt_authentication_bloc/Account/accessToken.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The user access token
|
|
||||||
_<span class="feature">final</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [creationTime](../wyatt_authentication_bloc/Account/creationTime.md) → [DateTime](https://api.flutter.dev/flutter/dart-core/DateTime-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Returns the users account creation time.
|
|
||||||
_<span class="feature">final</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [email](../wyatt_authentication_bloc/Account/email.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The users email address.
|
|
||||||
_<span class="feature">final</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [emailVerified](../wyatt_authentication_bloc/Account/emailVerified.md) → [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Returns whether the users email address has been verified.
|
|
||||||
_<span class="feature">final</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [hashCode](https://pub.dev/documentation/equatable/2.0.5/equatable/Equatable/hashCode.html) → [int](https://api.flutter.dev/flutter/dart-core/int-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The hash code for this object.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [id](../wyatt_authentication_bloc/Account/id.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The user's unique ID.
|
|
||||||
_<span class="feature">final</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [isAnonymous](../wyatt_authentication_bloc/Account/isAnonymous.md) → [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Returns whether the user is a anonymous.
|
|
||||||
_<span class="feature">final</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [isNewUser](../wyatt_authentication_bloc/Account/isNewUser.md) → [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Whether the user account has been recently created.
|
|
||||||
_<span class="feature">final</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [lastSignInTime](../wyatt_authentication_bloc/Account/lastSignInTime.md) → [DateTime](https://api.flutter.dev/flutter/dart-core/DateTime-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
When the user last signed in as dictated by the server clock.
|
|
||||||
_<span class="feature">final</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [phoneNumber](../wyatt_authentication_bloc/Account/phoneNumber.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Returns the users phone number.
|
|
||||||
_<span class="feature">final</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [photoURL](../wyatt_authentication_bloc/Account/photoURL.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Returns a photo URL for the user.
|
|
||||||
_<span class="feature">final</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [props](../wyatt_authentication_bloc/Account/props.md) → [List](https://api.flutter.dev/flutter/dart-core/List-class.html)<[Object](https://api.flutter.dev/flutter/dart-core/Object-class.html)?>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The list of properties that will be used to determine whether
|
|
||||||
two instances are equal.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [providerId](../wyatt_authentication_bloc/Account/providerId.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The provider ID for the user.
|
|
||||||
_<span class="feature">final</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [refreshToken](../wyatt_authentication_bloc/AccountModel/refreshToken.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The user refresh token
|
|
||||||
_<span class="feature">read-only</span><span class="feature">override</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [runtimeType](https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html) → [Type](https://api.flutter.dev/flutter/dart-core/Type-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A representation of the runtime type of the object.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [stringify](../wyatt_authentication_bloc/Account/stringify.md) → [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If set to <code>true</code>, the <a href="https://pub.dev/documentation/equatable/2.0.5/equatable/Equatable/toString.html">toString</a> method will be overridden to output
|
|
||||||
this instance's <a href="../wyatt_authentication_bloc/Account/props.md">props</a>.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [user](../wyatt_authentication_bloc/AccountModel/user.md) → [User](https://pub.dev/documentation/firebase_auth/4.2.0/firebase_auth/User-class.html)?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Methods
|
|
||||||
|
|
||||||
##### [noSuchMethod](https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html)([Invocation](https://api.flutter.dev/flutter/dart-core/Invocation-class.html) invocation) dynamic
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Invoked when a non-existent method or property is accessed.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [toString](https://pub.dev/documentation/equatable/2.0.5/equatable/Equatable/toString.html)() [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A string representation of this object.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Operators
|
|
||||||
|
|
||||||
##### [operator ==](https://pub.dev/documentation/equatable/2.0.5/equatable/Equatable/operator_equals.html)([Object](https://api.flutter.dev/flutter/dart-core/Object-class.html) other) [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The equality operator.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-51
@@ -1,51 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# AccountModel.fromFirebaseUser constructor
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AccountModel.fromFirebaseUser([User](https://pub.dev/documentation/firebase_auth/4.2.0/firebase_auth/User-class.html)? user, {[String](https://api.flutter.dev/flutter/dart-core/String-class.html)? accessToken})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
factory AccountModel.fromFirebaseUser(User? user, {String? accessToken}) {
|
|
||||||
if (user != null) {
|
|
||||||
final providerId =
|
|
||||||
(user.providerData.isEmpty) ? '' : user.providerData.first.providerId;
|
|
||||||
return AccountModel._(
|
|
||||||
user: user,
|
|
||||||
id: user.uid,
|
|
||||||
emailVerified: user.emailVerified,
|
|
||||||
isAnonymous: user.isAnonymous,
|
|
||||||
providerId: providerId,
|
|
||||||
creationTime: user.metadata.creationTime,
|
|
||||||
lastSignInTime: user.metadata.lastSignInTime,
|
|
||||||
isNewUser: false,
|
|
||||||
email: user.email,
|
|
||||||
phoneNumber: user.phoneNumber,
|
|
||||||
photoURL: user.photoURL,
|
|
||||||
accessToken: accessToken,
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
throw ModelParsingFailureFirebase('null-user', 'User cannot be null');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-54
@@ -1,54 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# AccountModel.fromFirebaseUserCredential constructor
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AccountModel.fromFirebaseUserCredential([UserCredential](https://pub.dev/documentation/firebase_auth/4.2.0/firebase_auth/UserCredential-class.html)? userCredential)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
factory AccountModel.fromFirebaseUserCredential(
|
|
||||||
UserCredential? userCredential,
|
|
||||||
) {
|
|
||||||
final user = userCredential?.user;
|
|
||||||
if (user != null) {
|
|
||||||
final providerId =
|
|
||||||
(user.providerData.isEmpty) ? '' : user.providerData.first.providerId;
|
|
||||||
return AccountModel._(
|
|
||||||
user: user,
|
|
||||||
id: user.uid,
|
|
||||||
emailVerified: user.emailVerified,
|
|
||||||
isAnonymous: user.isAnonymous,
|
|
||||||
providerId: providerId,
|
|
||||||
creationTime: user.metadata.creationTime,
|
|
||||||
lastSignInTime: user.metadata.lastSignInTime,
|
|
||||||
isNewUser: userCredential?.additionalUserInfo?.isNewUser,
|
|
||||||
email: user.email,
|
|
||||||
phoneNumber: user.phoneNumber,
|
|
||||||
photoURL: user.photoURL,
|
|
||||||
accessToken: userCredential?.credential?.accessToken,
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
throw ModelParsingFailureFirebase('null-user', 'User cannot be null');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-41
@@ -1,41 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# refreshToken property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Annotations**
|
|
||||||
|
|
||||||
- @[override](https://api.flutter.dev/flutter/dart-core/override-constant.html)
|
|
||||||
[String](https://api.flutter.dev/flutter/dart-core/String-class.html)? refreshToken
|
|
||||||
|
|
||||||
_<span class="feature">override</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>The user refresh token</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
@override
|
|
||||||
String? get refreshToken => user?.refreshToken;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-33
@@ -1,33 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# user property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[User](https://pub.dev/documentation/firebase_auth/4.2.0/firebase_auth/User-class.html)? user
|
|
||||||
|
|
||||||
_<span class="feature">final</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
final User? user;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-137
@@ -1,137 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ApplyActionCodeFailureFirebase class
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Thrown if during the apply action code process if a failure occurs.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Inheritance**
|
|
||||||
|
|
||||||
- [Object](https://api.flutter.dev/flutter/dart-core/Object-class.html)
|
|
||||||
- [AuthenticationFailureInterface](../wyatt_authentication_bloc/AuthenticationFailureInterface-class.md)
|
|
||||||
- [ApplyActionCodeFailureInterface](../wyatt_authentication_bloc/ApplyActionCodeFailureInterface-class.md)
|
|
||||||
- ApplyActionCodeFailureFirebase
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Constructors
|
|
||||||
|
|
||||||
[ApplyActionCodeFailureFirebase](../wyatt_authentication_bloc/ApplyActionCodeFailureFirebase/ApplyActionCodeFailureFirebase.md) ([[String](https://api.flutter.dev/flutter/dart-core/String-class.html)? code, [String](https://api.flutter.dev/flutter/dart-core/String-class.html)? msg])
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[ApplyActionCodeFailureFirebase.fromCode](../wyatt_authentication_bloc/ApplyActionCodeFailureFirebase/ApplyActionCodeFailureFirebase.fromCode.md) ([String](https://api.flutter.dev/flutter/dart-core/String-class.html) code)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
##### [code](../wyatt_authentication_bloc/AuthenticationFailureInterface/code.md) ↔ [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_<span class="feature">read / write</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [hashCode](https://api.flutter.dev/flutter/dart-core/Object/hashCode.html) → [int](https://api.flutter.dev/flutter/dart-core/int-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The hash code for this object.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [message](../wyatt_authentication_bloc/AuthenticationFailureInterface/message.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [msg](../wyatt_authentication_bloc/AuthenticationFailureInterface/msg.md) ↔ [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_<span class="feature">read / write</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [runtimeType](https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html) → [Type](https://api.flutter.dev/flutter/dart-core/Type-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A representation of the runtime type of the object.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Methods
|
|
||||||
|
|
||||||
##### [noSuchMethod](https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html)([Invocation](https://api.flutter.dev/flutter/dart-core/Invocation-class.html) invocation) dynamic
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Invoked when a non-existent method or property is accessed.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [toString](../wyatt_authentication_bloc/AuthenticationFailureInterface/toString.md)() [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A string representation of this object.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Operators
|
|
||||||
|
|
||||||
##### [operator ==](https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html)([Object](https://api.flutter.dev/flutter/dart-core/Object-class.html) other) [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The equality operator.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-49
@@ -1,49 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ApplyActionCodeFailureFirebase.fromCode constructor
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ApplyActionCodeFailureFirebase.fromCode([String](https://api.flutter.dev/flutter/dart-core/String-class.html) code)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
ApplyActionCodeFailureFirebase.fromCode(String code) : super.fromCode(code) {
|
|
||||||
switch (code) {
|
|
||||||
case 'expired-action-code':
|
|
||||||
msg = 'Action code has expired.';
|
|
||||||
break;
|
|
||||||
case 'invalid-action-code':
|
|
||||||
msg = 'Action code is invalid.';
|
|
||||||
break;
|
|
||||||
case 'user-disabled':
|
|
||||||
msg = 'This user has been disabled. Please contact support for help.';
|
|
||||||
break;
|
|
||||||
case 'user-not-found':
|
|
||||||
msg = 'Email is not found, please create an account.';
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
this.code = 'unknown';
|
|
||||||
msg = 'An unknown error occurred.';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-31
@@ -1,31 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ApplyActionCodeFailureFirebase constructor
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ApplyActionCodeFailureFirebase([[String](https://api.flutter.dev/flutter/dart-core/String-class.html)? code, [String](https://api.flutter.dev/flutter/dart-core/String-class.html)? msg])
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
ApplyActionCodeFailureFirebase([String? code, String? msg])
|
|
||||||
: super(code ?? 'unknown', msg ?? 'An unknown error occurred.');
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-139
@@ -1,139 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ApplyActionCodeFailureInterface class
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Thrown if during the apply action code process if a failure occurs.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Inheritance**
|
|
||||||
|
|
||||||
- [Object](https://api.flutter.dev/flutter/dart-core/Object-class.html)
|
|
||||||
- [AuthenticationFailureInterface](../wyatt_authentication_bloc/AuthenticationFailureInterface-class.md)
|
|
||||||
- ApplyActionCodeFailureInterface
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Implementers**
|
|
||||||
|
|
||||||
- [ApplyActionCodeFailureFirebase](../wyatt_authentication_bloc/ApplyActionCodeFailureFirebase-class.md)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Constructors
|
|
||||||
|
|
||||||
[ApplyActionCodeFailureInterface](../wyatt_authentication_bloc/ApplyActionCodeFailureInterface/ApplyActionCodeFailureInterface.md) ([String](https://api.flutter.dev/flutter/dart-core/String-class.html) code, [String](https://api.flutter.dev/flutter/dart-core/String-class.html) msg)
|
|
||||||
|
|
||||||
Thrown if during the apply action code process if a failure occurs.
|
|
||||||
|
|
||||||
[ApplyActionCodeFailureInterface.fromCode](../wyatt_authentication_bloc/ApplyActionCodeFailureInterface/ApplyActionCodeFailureInterface.fromCode.md) ([String](https://api.flutter.dev/flutter/dart-core/String-class.html) code)
|
|
||||||
|
|
||||||
Thrown if during the apply action code process if a failure occurs.
|
|
||||||
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
##### [code](../wyatt_authentication_bloc/AuthenticationFailureInterface/code.md) ↔ [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_<span class="feature">read / write</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [hashCode](https://api.flutter.dev/flutter/dart-core/Object/hashCode.html) → [int](https://api.flutter.dev/flutter/dart-core/int-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The hash code for this object.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [message](../wyatt_authentication_bloc/AuthenticationFailureInterface/message.md) → [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [msg](../wyatt_authentication_bloc/AuthenticationFailureInterface/msg.md) ↔ [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_<span class="feature">read / write</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [runtimeType](https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html) → [Type](https://api.flutter.dev/flutter/dart-core/Type-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A representation of the runtime type of the object.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Methods
|
|
||||||
|
|
||||||
##### [noSuchMethod](https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html)([Invocation](https://api.flutter.dev/flutter/dart-core/Invocation-class.html) invocation) dynamic
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Invoked when a non-existent method or property is accessed.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [toString](../wyatt_authentication_bloc/AuthenticationFailureInterface/toString.md)() [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A string representation of this object.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Operators
|
|
||||||
|
|
||||||
##### [operator ==](https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html)([Object](https://api.flutter.dev/flutter/dart-core/Object-class.html) other) [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The equality operator.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-31
@@ -1,31 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ApplyActionCodeFailureInterface.fromCode constructor
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ApplyActionCodeFailureInterface.fromCode([String](https://api.flutter.dev/flutter/dart-core/String-class.html) code)
|
|
||||||
|
|
||||||
|
|
||||||
<p>Thrown if during the apply action code process if a failure occurs.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
ApplyActionCodeFailureInterface.fromCode(super.code) : super.fromCode();
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-31
@@ -1,31 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ApplyActionCodeFailureInterface constructor
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ApplyActionCodeFailureInterface([String](https://api.flutter.dev/flutter/dart-core/String-class.html) code, [String](https://api.flutter.dev/flutter/dart-core/String-class.html) msg)
|
|
||||||
|
|
||||||
|
|
||||||
<p>Thrown if during the apply action code process if a failure occurs.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
ApplyActionCodeFailureInterface(super.code, super.msg);
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-122
@@ -1,122 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# AuthFormField class
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Default authentication form fields name</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Constructors
|
|
||||||
|
|
||||||
[AuthFormField](../wyatt_authentication_bloc/AuthFormField/AuthFormField.md) ()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
##### [hashCode](https://api.flutter.dev/flutter/dart-core/Object/hashCode.html) → [int](https://api.flutter.dev/flutter/dart-core/int-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The hash code for this object.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [runtimeType](https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html) → [Type](https://api.flutter.dev/flutter/dart-core/Type-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A representation of the runtime type of the object.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Methods
|
|
||||||
|
|
||||||
##### [noSuchMethod](https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html)([Invocation](https://api.flutter.dev/flutter/dart-core/Invocation-class.html) invocation) dynamic
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Invoked when a non-existent method or property is accessed.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [toString](https://api.flutter.dev/flutter/dart-core/Object/toString.html)() [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A string representation of this object.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Operators
|
|
||||||
|
|
||||||
##### [operator ==](https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html)([Object](https://api.flutter.dev/flutter/dart-core/Object-class.html) other) [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The equality operator.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Constants
|
|
||||||
|
|
||||||
##### [confirmPassword](../wyatt_authentication_bloc/AuthFormField/confirmPassword-constant.md) const [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Confirm Password field: <code>wyattConfirmPasswordField</code>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [email](../wyatt_authentication_bloc/AuthFormField/email-constant.md) const [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Email field: <code>wyattEmailField</code>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [password](../wyatt_authentication_bloc/AuthFormField/password-constant.md) const [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Password field: <code>wyattPasswordField</code>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-25
@@ -1,25 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# AuthFormField constructor
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AuthFormField()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# confirmPassword constant
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[String](https://api.flutter.dev/flutter/dart-core/String-class.html) const confirmPassword
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Confirm Password field: <code>wyattConfirmPasswordField</code></p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
static const confirmPassword = 'wyattConfirmPasswordField';
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# email constant
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[String](https://api.flutter.dev/flutter/dart-core/String-class.html) const email
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Email field: <code>wyattEmailField</code></p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
static const email = 'wyattEmailField';
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# password constant
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[String](https://api.flutter.dev/flutter/dart-core/String-class.html) const password
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Password field: <code>wyattPasswordField</code></p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
static const password = 'wyattPasswordField';
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-131
@@ -1,131 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# AuthFormName class
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Default authentication form name</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Constructors
|
|
||||||
|
|
||||||
[AuthFormName](../wyatt_authentication_bloc/AuthFormName/AuthFormName.md) ()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
##### [hashCode](https://api.flutter.dev/flutter/dart-core/Object/hashCode.html) → [int](https://api.flutter.dev/flutter/dart-core/int-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The hash code for this object.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [runtimeType](https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html) → [Type](https://api.flutter.dev/flutter/dart-core/Type-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A representation of the runtime type of the object.
|
|
||||||
_<span class="feature">read-only</span><span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Methods
|
|
||||||
|
|
||||||
##### [noSuchMethod](https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html)([Invocation](https://api.flutter.dev/flutter/dart-core/Invocation-class.html) invocation) dynamic
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Invoked when a non-existent method or property is accessed.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [toString](https://api.flutter.dev/flutter/dart-core/Object/toString.html)() [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A string representation of this object.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Operators
|
|
||||||
|
|
||||||
##### [operator ==](https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html)([Object](https://api.flutter.dev/flutter/dart-core/Object-class.html) other) [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The equality operator.
|
|
||||||
_<span class="feature">inherited</span>_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Constants
|
|
||||||
|
|
||||||
##### [editAccountForm](../wyatt_authentication_bloc/AuthFormName/editAccountForm-constant.md) const [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Edit account form: <code>wyattEditAccountForm</code>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [passwordResetForm](../wyatt_authentication_bloc/AuthFormName/passwordResetForm-constant.md) const [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Password reset form: <code>wyattPasswordResetForm</code>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [signInForm](../wyatt_authentication_bloc/AuthFormName/signInForm-constant.md) const [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Sign In form: <code>wyattSignInForm</code>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### [signUpForm](../wyatt_authentication_bloc/AuthFormName/signUpForm-constant.md) const [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Sign Up form: <code>wyattSignUpForm</code>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-25
@@ -1,25 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# AuthFormName constructor
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AuthFormName()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# editAccountForm constant
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[String](https://api.flutter.dev/flutter/dart-core/String-class.html) const editAccountForm
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Edit account form: <code>wyattEditAccountForm</code></p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
static const String editAccountForm = 'wyattEditAccountForm';
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# passwordResetForm constant
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*[<Null safety>](https://dart.dev/null-safety)*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[String](https://api.flutter.dev/flutter/dart-core/String-class.html) const passwordResetForm
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Password reset form: <code>wyattPasswordResetForm</code></p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Implementation
|
|
||||||
|
|
||||||
```dart
|
|
||||||
static const String passwordResetForm = 'wyattPasswordResetForm';
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user