initState method

  1. @override
Future<void> initState()
override

Fonction d'initialisation de la vue

Implementation

@override
Future<void> initState() async {
  options = super.controller.getData() as List<String>;
  optionLength = options.length;
  MAX_DISPLAY_LINES = console.windowHeight-10 > 5 ? console.windowHeight-10 : 5 ;
  maxSublists = (optionLength / MAX_DISPLAY_LINES).ceil();
  initializedState = true;
  // TODO: implement initState
}