ModuleAccount constructor

ModuleAccount({
  1. BaseAccount? baseAccount,
  2. String? name,
  3. Iterable<String>? permissions,
})

Implementation

factory ModuleAccount({
  BaseAccount? baseAccount,
  $core.String? name,
  $core.Iterable<$core.String>? permissions,
}) {
  final _result = create();
  if (baseAccount != null) {
    _result.baseAccount = baseAccount;
  }
  if (name != null) {
    _result.name = name;
  }
  if (permissions != null) {
    _result.permissions.addAll(permissions);
  }
  return _result;
}