paragraphSpacingOverride property
override
The system-suggested amount of additional space (in logical pixels) to add following each paragraph in text.
This value takes precedence over any text paragraph spacing specified at the application level.
Returns null when no override has been set by the system.
Defaults to the value provided by PlatformDispatcher.paragraphSpacingOverride. This can only be set in a test environment to emulate different platform configurations. A standard PlatformDispatcher is not mutable from the framework.
Setting this value to null will force paragraphSpacingOverride to return
null. If you want to have the value default to the platform
paragraphSpacingOverride, use clearParagraphSpacingOverrideTestValue.
See also:
- PlatformDispatcher.paragraphSpacingOverride for the standard implementation
- clearParagraphSpacingOverrideTestValue to reset this value specifically
- clearAllTestValues to reset all test values for this view
Implementation
@override
double? get paragraphSpacingOverride => _forceParagraphSpacingOverrideToBeNull
? null
: _paragraphSpacingOverrideTestValue ?? _platformDispatcher.paragraphSpacingOverride;