@@ -18,7 +18,7 @@ Identically as for a successful launch, a similar scenario works for a test appl
1818# Usage
19191 ) Prepare list of initialize steps.
2020``` dart
21- final List<InitializationStep<MyProcess>> coreStepList = [
21+ final List<InitializationStep<MyProcess>> coresteps = [
2222 InitializationStep(
2323 title: "Config",
2424 initialize: (
@@ -27,7 +27,7 @@ Identically as for a successful launch, a similar scenario works for a test appl
2727 process.config = const MyConfig(),
2828 ),
2929 ];
30- final List<InitializationStep<MyProcess>> dataStepList = [
30+ final List<InitializationStep<MyProcess>> datasteps = [
3131 InitializationStep(
3232 title: "HttpClient",
3333 initialize: (
@@ -76,7 +76,7 @@ Identically as for a successful launch, a similar scenario works for a test appl
7676 ),
7777 ),
7878 ];
79- final List<InitializationStep<MyProcess>> blocStepList = [
79+ final List<InitializationStep<MyProcess>> blocsteps = [
8080 InitializationStep(
8181 title: "Bloc",
8282 initialize: (
@@ -93,10 +93,10 @@ Identically as for a successful launch, a similar scenario works for a test appl
9393``` dart
9494 final DependencyInitializer initializer = DependencyInitializer<MyProcess, MyResult>(
9595 creteProcess: () => MyProcess(),
96- stepList : [
97- ...coreStepList ,
98- ...dataStepList ,
99- ...blocStepList ,
96+ steps : [
97+ ...coresteps ,
98+ ...datasteps ,
99+ ...blocsteps ,
100100 ],
101101 onSuccess: (
102102 DependencyInitializationResult<MyProcess, MyResult> initializationResult,
@@ -116,7 +116,7 @@ For example, if you want the Flutter application to show a native splash screen
116116``` dart
117117 final Initializer initializer = Initializer<MyProcess, MyResult>(
118118 creteProcess: () => MyProcess(),
119- stepList: stepList ,
119+ steps: steps ,
120120 onSuccess: (
121121 DependencyInitializationResult<MyProcess, MyResult> initializationResult,
122122 Duration duration,
@@ -143,7 +143,7 @@ For example, you have a widget that displays its splash screen, and this widget
143143``` dart
144144 final Initializer initializer = Initializer<MyProcess, MyResult>(
145145 creteProcess: () => MyProcess(),
146- stepList: stepList ,
146+ steps: steps ,
147147 onStart: (
148148 Completer<DependencyInitializationResult<MyProcess, MyResult>> completer,
149149 ) => runApp(
@@ -168,15 +168,15 @@ For example, you have a widget that displays its splash screen, and this widget
168168For example, in the runtime of a Flutter application, you need to reinitialize your new dependencies for the new environment and return the first widget of the Flutter application again.
169169``` dart
170170 await initializationResult.reRun(
171- stepList : [
171+ steps : [
172172 InitializationStep(
173173 title: "Config",
174174 initialize: (
175175 MyProcess process,
176176 ) =>
177177 process.config = AnotherConfig(),
178178 ),
179- ...initializationResult.reinitializationStepList ,
179+ ...initializationResult.repeatSteps ,
180180 ],
181181 onSuccess: (
182182 DependencyInitializationResult<MyProcess, MyResult> initializationResult,
0 commit comments