AppTheme constructor

AppTheme({
  1. int selectedColor = 5,
  2. bool isDarkmode = false,
})

Implementation

AppTheme({
  this.selectedColor = 5,
  this.isDarkmode = false,
})  : assert(selectedColor >= 0, 'Selected color must be greater then 0'),
      assert(selectedColor < colorList.length,
          'Selected color must be less or equal than ${colorList.length - 1}');