ESDrawerController<T> constructor

ESDrawerController<T>({
  1. required dynamic onDrawerCall(
    1. ESDrawerItem
    ),
  2. required Widget screenView,
  3. required T screenIndex,
  4. required List<ESDrawerItem> drawerList,
  5. Widget? menuView,
  6. dynamic drawerIsOpen(
    1. bool
    )?,
  7. AnimatedIconData animatedIconData = AnimatedIcons.arrow_menu,
  8. double drawerWidth = 250,
  9. String? title = '',
  10. String? subTitle = '',
  11. TextStyle? titleStyle = const TextStyle(decoration: TextDecoration.none, fontWeight: FontWeight.w600, color: ESAppTheme.grey, fontSize: 18),
  12. TextStyle? subTitleStyle = const TextStyle(decoration: TextDecoration.none, fontWeight: FontWeight.w600, color: ESAppTheme.grey, fontSize: 12),
  13. Key? key,
})

Implementation

ESDrawerController({
  required this.onDrawerCall,
  required this.screenView,
  required this.screenIndex,
  required this.drawerList,
  this.menuView,
  this.drawerIsOpen,
  this.animatedIconData = AnimatedIcons.arrow_menu,
  this.drawerWidth = 250,
  this.assetLogo = '',
  this.title = '',
  this.subTitle = '',
  this.titleStyle = const TextStyle(
      decoration: TextDecoration.none,
      fontWeight: FontWeight.w600,
      color: ESAppTheme.grey,
      fontSize: 18),
  this.subTitleStyle = const TextStyle(
      decoration: TextDecoration.none,
      fontWeight: FontWeight.w600,
      color: ESAppTheme.grey,
      fontSize: 12),
  Key? key,
}) : super(key: key);