Scope constructor

Scope({
  1. ScopeType? scopeType,
  2. bool? readId,
  3. bool? readEmail,
  4. bool? readGender,
  5. bool? readCreatedAt,
  6. bool? offlineAccess,
  7. bool? readName,
  8. bool? readBirthday,
  9. bool? readCountry,
  10. bool? readPrefLangauge,
  11. String? name,
  12. String? key,
})

Implementation

factory Scope({
  ScopeType? scopeType,
  $core.bool? readId,
  $core.bool? readEmail,
  $core.bool? readGender,
  $core.bool? readCreatedAt,
  $core.bool? offlineAccess,
  $core.bool? readName,
  $core.bool? readBirthday,
  $core.bool? readCountry,
  $core.bool? readPrefLangauge,
  $core.String? name,
  $core.String? key,
}) {
  final _result = create();
  if (scopeType != null) {
    _result.scopeType = scopeType;
  }
  if (readId != null) {
    _result.readId = readId;
  }
  if (readEmail != null) {
    _result.readEmail = readEmail;
  }
  if (readGender != null) {
    _result.readGender = readGender;
  }
  if (readCreatedAt != null) {
    _result.readCreatedAt = readCreatedAt;
  }
  if (offlineAccess != null) {
    _result.offlineAccess = offlineAccess;
  }
  if (readName != null) {
    _result.readName = readName;
  }
  if (readBirthday != null) {
    _result.readBirthday = readBirthday;
  }
  if (readCountry != null) {
    _result.readCountry = readCountry;
  }
  if (readPrefLangauge != null) {
    _result.readPrefLangauge = readPrefLangauge;
  }
  if (name != null) {
    _result.name = name;
  }
  if (key != null) {
    _result.key = key;
  }
  return _result;
}