primary property

DVHostEntry get primary

The entry with no mount. parse refuses a configuration without exactly one, so a DVHosts that is not empty always has it.

Implementation

DVHostEntry get primary => entries.firstWhere(
  (DVHostEntry e) => e.isPrimary,
  orElse: () => throw StateError('dartvel.hosts has no primary host.'),
);