Skip to content

Commit 23d690c

Browse files
committed
FLUT-4313-Document updated with null safety.
1 parent c096fed commit 23d690c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,10 @@
33
In the flutter date range picker, you can navigate between the picker views. Switching between picker views has been achieved using the `view` property of DateRangePickerController and tapping the header of the picker views.
44

55
## Step 1:
6-
In initState(), initialize the controller for date range picker.
6+
Inside the state, initialize the controller for date range picker.
77

88
```xml
9-
DateRangePickerController _controller;
10-
11-
@override
12-
void initState() {
13-
// TODO: implement initState
14-
_controller = DateRangePickerController();
15-
super.initState();
16-
}
9+
final DateRangePickerController _controller = DateRangePickerController();
1710
```
1811

1912

0 commit comments

Comments
 (0)