Working on starter.sh
This commit is contained in:
parent
e283452507
commit
9b289db4e7
|
|
@ -187,13 +187,17 @@ else
|
|||
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/redux/app/app_state.dart
|
||||
|
||||
comment="STARTER: states switch list - do not remove comment"
|
||||
code="case EntityType.${module_camel}:${lineBreak}return ${module_camel}State.map;${lineBreak}"
|
||||
code="case EntityType.${module_camel}:${lineBreak}return ${module_camel}State.list;${lineBreak}"
|
||||
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/redux/app/app_state.dart
|
||||
|
||||
comment="STARTER: states switch map - do not remove comment"
|
||||
code="case EntityType.${module_camel}:${lineBreak}return ${module_camel}State.map;${lineBreak}"
|
||||
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/redux/app/app_state.dart
|
||||
|
||||
comment="STARTER: states switch - do not remove comment"
|
||||
code="case EntityType.${module_camel}:${lineBreak}return ${module_camel}UIState;${lineBreak}"
|
||||
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/redux/app/app_state.dart
|
||||
|
||||
comment="STARTER: state getters - do not remove comment"
|
||||
code="${Module}State get ${module_camel}State => selectedCompanyState.${module_camel}State;${lineBreak}"
|
||||
code="${code}ListUIState get ${module_camel}ListState => uiState.${module_camel}UIState.listUIState;${lineBreak}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue