ModelRolesConfig constructor
ModelRolesConfig({
- required Map<
String, List< roles,ModelRef> > - List<
PathRoleOverride> pathOverrides = const [], - ModelRolesRetryPolicy retry = const ModelRolesRetryPolicy(),
Creates a config; roles maps role id to its ordered chain.
Implementation
ModelRolesConfig({
required Map<String, List<ModelRef>> roles,
this.pathOverrides = const [],
this.retry = const ModelRolesRetryPolicy(),
}) : roles = Map.unmodifiable({
for (final entry in roles.entries)
entry.key: List<ModelRef>.unmodifiable(entry.value),
});