name property

String get name

Implementation

String get name {
  // A safe way to access [$name] in a non-nullable behavior for simplicity.
  // The name should ne provided via constructor or init method.
  assert(
    $name != null,
    'Name must be set via constructor or init method',
  );

  return $name!;
}