defaultRegistry property

Map<Type, TextRenderer Function()> defaultRegistry
getter/setter pair

A registry containing default providers for every TextRenderer subclass; used by createDefault to create default parameter values.

If you add a new TextRenderer child, you can register it by adding it, together with a provider lambda, to this map.

Implementation

static Map<Type, TextRenderer Function()> defaultRegistry = {
  TextRenderer: TextPaint.new,
  TextPaint: TextPaint.new,
};