This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thanks to dcdg ( dart class diagram generato ) package , we create diagram with dart pub global run dcdg -b mermaid Don't need either package anymore thanks to data_state Linked #42
- Loading branch information
1 parent
1b7790a
commit 12c93a3
Showing
5 changed files
with
151 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
```mermaid | ||
classDiagram | ||
class UseCase | ||
<<abstract>> UseCase | ||
UseCase : +call()* dynamic | ||
class Status | ||
<<enumeration>> Status | ||
Status : +index int | ||
Status : +values$ List~Status~ | ||
Status : +paymentPending$ Status | ||
Status o-- Status | ||
Status : +inProgress$ Status | ||
Status o-- Status | ||
Status : +over$ Status | ||
Status o-- Status | ||
Status : +refused$ Status | ||
Status o-- Status | ||
Status : +success$ Status | ||
Status o-- Status | ||
Status : +aborted$ Status | ||
Status o-- Status | ||
Status : +error$ Status | ||
Status o-- Status | ||
Enum <|.. Status | ||
class DataState | ||
DataState : +data T? | ||
DataState : +error Object? | ||
DataState : +state Status | ||
DataState o-- Status | ||
DataState : +dataValue T | ||
class Success | ||
DataState <|-- Success | ||
class Error | ||
DataState <|-- Error | ||
class Pending | ||
DataState <|-- Pending | ||
class Status | ||
<<enumeration>> Status | ||
Status : +index int | ||
Status : +values$ List~Status~ | ||
Status : +success$ Status | ||
Status o-- Status | ||
Status : +error$ Status | ||
Status o-- Status | ||
Status : +pending$ Status | ||
Status o-- Status | ||
Enum <|.. Status | ||
class ProductRepositoryImpl | ||
ProductRepositoryImpl : +getProduct() dynamic | ||
ProductRepositoryImpl : +makeOrder() dynamic | ||
ProductRepository <|.. ProductRepositoryImpl | ||
class Order | ||
Order : +totalPrice int | ||
Order : +productList List~Product~ | ||
Order : +props List~Object?~ | ||
Equatable <|-- Order | ||
class Product | ||
Product : +name String | ||
Product : +price int | ||
Product : +stock int | ||
Product : +props List~Object?~ | ||
Equatable <|-- Product | ||
class ProductRepository | ||
<<abstract>> ProductRepository | ||
ProductRepository : +getProduct()* dynamic | ||
ProductRepository : +makeOrder()* dynamic | ||
class GetProduct | ||
GetProduct : +productRepository ProductRepository | ||
GetProduct o-- ProductRepository | ||
GetProduct : +call() dynamic | ||
UseCase <|.. GetProduct | ||
class MakeOrder | ||
MakeOrder : +productRepository ProductRepository | ||
MakeOrder o-- ProductRepository | ||
MakeOrder : +call() dynamic | ||
UseCase <|.. MakeOrder | ||
class Check | ||
Check : +amount int | ||
Check : +checkNumber int | ||
Check : +props List~Object?~ | ||
Check : +stringify bool? | ||
Equatable <|.. Check | ||
class NpcPay | ||
NpcPay : +expire DateTime | ||
NpcPay : +cardNumber int | ||
NpcPay : +props List~Object?~ | ||
Equatable <|-- NpcPay | ||
class TransactionRepository | ||
<<abstract>> TransactionRepository | ||
TransactionRepository : +postTransaction()* dynamic | ||
TransactionRepository : +getTransactionStatus()* dynamic | ||
class GetNpcData | ||
GetNpcData : +props List~Object?~ | ||
GetNpcData : +stringify bool? | ||
GetNpcData : +call() dynamic | ||
Equatable <|.. GetNpcData | ||
UseCase <|.. GetNpcData | ||
class Proceed | ||
Proceed : +props List~Object?~ | ||
Proceed : +stringify bool? | ||
Proceed : +call() dynamic | ||
Equatable <|.. Proceed | ||
UseCase <|.. Proceed | ||
class GetStatus | ||
GetStatus : +props List~Object?~ | ||
GetStatus : +stringify bool? | ||
GetStatus : +call() dynamic | ||
Equatable <|.. GetStatus | ||
UseCase <|.. GetStatus | ||
class GetCheckData | ||
GetCheckData : +call() dynamic | ||
UseCase <|.. GetCheckData | ||
class CheckScan | ||
CheckScan : +build() Widget | ||
StatelessWidget <|-- CheckScan | ||
class MyApp | ||
MyApp : +build() Widget | ||
StatelessWidget <|-- MyApp | ||
class MyHomePage | ||
MyHomePage : +title String | ||
MyHomePage : +createState() State<MyHomePage> | ||
StatefulWidget <|-- MyHomePage | ||
class _MyHomePageState | ||
_MyHomePageState : +build() Widget | ||
State <|-- _MyHomePageState | ||
``` |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters