newBuilder abstract method

Object newBuilder(
  1. FullType fullType

Creates a new builder for the type represented by fullType.

For example, if fullType is BuiltList<int, String>, returns a ListBuilder<int, String>. This helps serializers to instantiate with correct generic type parameters.

Throws a StateError if no matching builder factory has been added.


Object newBuilder(FullType fullType);