From 23d690c26920916ddfe8790d6d65fc0d8f78c43c Mon Sep 17 00:00:00 2001 From: Sasikumar Arumugam Date: Mon, 5 Apr 2021 15:24:39 +0530 Subject: [PATCH] FLUT-4313-Document updated with null safety. --- README.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ccea3b8..8e9081f 100644 --- a/README.md +++ b/README.md @@ -3,17 +3,10 @@ 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. ## Step 1: -In initState(), initialize the controller for date range picker. +Inside the state, initialize the controller for date range picker. ```xml -DateRangePickerController _controller; - -@override -void initState() { - // TODO: implement initState - _controller = DateRangePickerController(); - super.initState(); -} +final DateRangePickerController _controller = DateRangePickerController(); ```