props property

  1. @override
  2. @nonVirtual
List<Object?> get props

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

Implementation

@override
@nonVirtual
List<Object?> get props => [name];