props property

  1. @override
List<Object?> get props

The list of properties that will be used to determine whether two instances are equal.

Implementation

@override
List<Object?> get props => [
      level1.named('level1'),
      level2.named('level2'),
      level3.named('level3'),
      level4.named('level4'),
      level5.named('level5'),
    ];