BaseType class
Represents the base type of a particular field in a proto definition. (Doesn't include List<> for repeated fields.)
Constructors
- BaseType(FieldDescriptorProto field, GenerationContext ctx)
- 
          
            factory
Properties
- descriptor → FieldDescriptorProto_Type
- 
  
  final
- generator → ProtobufContainer?
- 
  
  final
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- isBytes → bool
- 
  
  no setter
- isDuration → bool
- 
  
  no setter
- isEnum → bool
- 
  
  no setter
- isGroup → bool
- 
  
  no setter
- isMessage → bool
- 
  
  no setter
- isPackable → bool
- 
  
  no setter
- isString → bool
- 
  
  no setter
- isTimestamp → bool
- 
  
  no setter
- isWellKnownType → bool
- 
  
  no setter
- package → String
- 
  The package where this type is declared.
(Always the empty string for primitive types.)
  no setter
- prefixed → String
- 
  The Dart expression to use for this type when in a different file.
  no setter
- prefixedInterface → String
- 
  
  no setter
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- setter → String?
- 
  
  final
- typeConstantSuffix → String
- 
  The suffix of the constant for this type in PbFieldType.
(For example, 'B' for boolean or '3' for int32.)
  final
- unprefixed → String
- 
  The name of the Dart type when in the same package.
  final
- unprefixedInterface → String
- 
  Prepend interfacePrefixto the typeno setter
- useInterfaceType → bool
- 
  
  no setter
Methods
- 
  getDartType(FileGenerator fileGen) → String 
- Returns the name to use in generated code for this Dart type.
- 
  getInterfaceType(FileGenerator fileGen) → String 
- 
  getRepeatedDartType(FileGenerator fileGen, {bool? isOptional}) → String 
- 
  getRepeatedDartTypeIterable(FileGenerator fileGen, {bool? isOptional}) → String 
- 
  getRepeatedInterfaceType(FileGenerator fileGen) → String 
- 
  getRepeatedInterfaceTypeIterable(FileGenerator fileGen) → String 
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
- 
  unprefixedInjectPrefix(String prefix) → String 
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited