ScriptRegistry class
Registry for script handlers that centralizes text style generation for different scripts.
This class serves as a coordination point and factory for creating properly styled
TextStyle objects based on script type. It delegates style generation to specialized
script handlers (e.g., KhmerStyle, LatinStyle, ThaiStyle, LaoStyle,
MyanmarStyle, VietnameseStyle) while providing a unified interface.
The registry pattern used here allows for:
- Central management of all supported scripts
- Easy extension to additional scripts in the future
- Consistent style application across the application
- Simplified interface for other components
This class should not be instantiated directly; use its static methods instead.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
createTextStyle(
{required ScriptType type, required TextStyleProperties baseProperties, ScriptStyleProperties? khmerProperties, ScriptStyleProperties? latinProperties, ScriptStyleProperties? thaiProperties, ScriptStyleProperties? laoProperties, ScriptStyleProperties? myanmarProperties, ScriptStyleProperties? vietnameseProperties}) → TextStyle - Creates a TextStyle for a given script type based on provided properties.