FieldDeclaration constructor

  1. @Implements<Declaration>()
const FieldDeclaration({
  1. required String typeName,
  2. required String? typeFullLibraryName,
  3. required String name,
  4. required bool isDeprecated,
  5. required bool isStatic,
  6. required bool isExperimental,
  7. Set<String>? entryPoints,
  8. required String relativePath,
  9. required bool isReadable,
  10. required bool isWriteable,
})

Implementation

@Implements<Declaration>()
const factory FieldDeclaration({
  /// type of this field
  required String typeName,

  /// full library name for the type
  required String? typeFullLibraryName,

  /// name of this field
  required String name,

  /// whether this field is deprecated
  required bool isDeprecated,

  /// whether this field is static
  required bool isStatic,

  /// whether this field is experimental
  required bool isExperimental,

  /// entry points this field is reachable through
  Set<String>? entryPoints,

  /// the relative path of the library
  required String relativePath,

  /// whether this field is readable
  required bool isReadable,

  /// whether this field is writeable
  required bool isWriteable,
}) = _FieldDeclaration;