getType method Null safety

Type? getType(
  1. String name,
  2. [String? library]
)

Gets object type by its name and library where it is defined.

  • name an object type name.
  • library a library where the type is defined Returns the object type or null is the type wasn't found.