NavigationRailDestination constructor Null safety

const NavigationRailDestination(
  1. {required Widget icon,
  2. Widget? selectedIcon,
  3. Color? indicatorColor,
  4. ShapeBorder? indicatorShape,
  5. required Widget label,
  6. EdgeInsets? padding}
)

Implementation

const factory NavigationRailDestination({
  required Widget icon,
  Widget? selectedIcon,
  Color? indicatorColor,
  ShapeBorder? indicatorShape,
  required Widget label,
  EdgeInsets? padding,
}) = _NavigationRailDestination;