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 isConst,
  7. required bool isExperimental,
  8. Set<String>? entryPoints,
  9. required String relativePath,
  10. required bool isReadable,
  11. 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 a constant
  required bool isConst,

  /// 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;