ProtobufMapper constructor

const ProtobufMapper(
  1. {@required Map<String, GeneratedMessage Function()> factoriesByTypeName,
  2. @required Map<FullType, GeneratedMessage Function()> factoriesBySpecifiedType,
  3. @required bool throwOnDecodingFailure,
  4. Mapper nextMapper}
)

Implementation

const ProtobufMapper({
  @required this.factoriesByTypeName,
  @required this.factoriesBySpecifiedType,
  @required this.throwOnDecodingFailure,
  this.nextMapper,
})  : assert(factoriesByTypeName != null || factoriesBySpecifiedType != null),
      assert(throwOnDecodingFailure != null);