NavItem constructor

const NavItem({
  1. required String type,
  2. required String title,
  3. required String url,
  4. @JsonKey(name: 'icon') required FBIcon? icon,
})

Implementation

const factory NavItem({
  /// The type of the nav item
  required String type,

  /// The title of the nav item
  required String title,

  /// The url of the nav item
  required String url,

  /// The icon of the nav item
  @JsonKey(name: 'icon') required FBIcon? icon,
}) = _NavItem;