AbsNodeType constructor

AbsNodeType({
  1. required dynamic id,
  2. required String title,
  3. bool isInner = true,
  4. bool isUnavailable = false,
  5. bool? isChosen = false,
  6. bool isExpanded = false,
  7. bool isFavorite = false,
  8. bool isShowedInSearching = true,
  9. bool isBlurred = false,
})

Implementation

AbsNodeType({
  required this.id,
  required this.title,
  this.isInner = true,
  this.isUnavailable = false,
  this.isChosen = false,
  this.isExpanded = false,
  this.isFavorite = false,
  this.isShowedInSearching = true,
  this.isBlurred = false,
}) {
  if (!isInner && isChosen == null) {
    throw ArgumentError("Leaf node's `isChosen` cannot contain null value.");
  }
}