SourceHandlerRegistry class

Registry for managing source handlers

Features:

  • Finds appropriate handler for any ModelSource
  • Strategy pattern - delegates to specific handlers
  • First-match wins (order matters when registering handlers)
  • Type-safe with sealed ModelSource classes

Constructors

SourceHandlerRegistry.new({required List<SourceHandler> handlers})

Properties

handlers List<SourceHandler>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getHandler(ModelSource source) SourceHandler?
Finds the appropriate handler for the given source
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited