nickname property

String get nickname

The nickname used for display, if the name is empty, the id is displayed.

Implementation

String get nickname {
  if (showName != null && showName!.isNotEmpty) {
    return showName!;
  }
  return id;
}