ansix library
AnsiX is a powerful and easy-to-use library that provides tools and extensions for adding ANSI color and styling support to your Dart & Flutter applications.
Classes
-
$AnsiBorderCopyWithProxyChain<
$Result> -
$AnsiBorderSetCopyWithProxyChain<
$Result> -
$AnsiGridThemeCopyWithProxyChain<
$Result> -
$AnsiTextThemeCopyWithProxyChain<
$Result> -
$AnsiTreeAnchorThemeCopyWithProxyChain<
$Result> -
$AnsiTreeHeaderThemeCopyWithProxyChain<
$Result> -
$AnsiTreeNodeKeyThemeCopyWithProxyChain<
$Result> -
$AnsiTreeNodeThemeCopyWithProxyChain<
$Result> -
$AnsiTreeNodeValueThemeCopyWithProxyChain<
$Result> -
$AnsiTreeViewThemeCopyWithProxyChain<
$Result> -
$WrapOptionsCopyWithProxyChain<
$Result> - AnsiBorder
- AnsiBorder
- AnsiBorderSet
- AnsiBorderSet
- AnsiColor
- AnsiColor
- AnsiColorSet
- AnsiEscapeCodes
- AnsiEscapeCodes
- AnsiGrid
- AnsiGrid
- AnsiGridTheme
- AnsiGridTheme
- AnsiOutlinedText
- AnsiOutlinedText
- AnsiPadding
- AnsiPadding
- AnsiText
- AnsiText
- AnsiTextStyle
- AnsiTextStyle
- AnsiTextTheme
- AnsiTreeAnchorTheme
- AnsiTreeAnchorTheme
- AnsiTreeHeaderTheme
- AnsiTreeHeaderTheme
- AnsiTreeNodeKeyTheme
- AnsiTreeNodeKeyTheme
- AnsiTreeNodeTheme
- AnsiTreeNodeTheme
- AnsiTreeNodeValueTheme
- AnsiTreeNodeValueTheme
- AnsiTreeView
- AnsiTreeView
- AnsiTreeViewTheme
- AnsiTreeViewTheme
- AnsiWidget
- Base AnsiWidget interface class.
- AnsiX
- AnsiX
- Hsl
- HSL
- Rgb
- RGB
- WrapOptions
- WrapOptions
Enums
- AnsiBorderStyle
- AnsiBorderStyle
- AnsiBorderType
- AnsiBorderType
- AnsiGridType
- AnsiOrientation
- AnsiOrientation
- AnsiStyle
- AnsiStyle
- AnsiTextAlignment
- How the text should be aligned horizontally.
- BoxDrawingSet
- BoxDrawingSet
- ColorFormat
- Defines whether ANSI colors should be formatted using the terminal code or the RGB value.
- GraphicDrawingSet
- GraphicDrawingSet
- TreeNodeType
- TreeNodeType
- TriangleSet
- TriangleSet
Extensions
- $AnsiBorderExtension on AnsiBorder
- $AnsiBorderSetExtension on AnsiBorderSet
- $AnsiGridThemeExtension on AnsiGridTheme
- $AnsiTextThemeExtension on AnsiTextTheme
- $AnsiTreeAnchorThemeExtension on AnsiTreeAnchorTheme
- $AnsiTreeHeaderThemeExtension on AnsiTreeHeaderTheme
- $AnsiTreeNodeKeyThemeExtension on AnsiTreeNodeKeyTheme
- $AnsiTreeNodeThemeExtension on AnsiTreeNodeTheme
- $AnsiTreeNodeValueThemeExtension on AnsiTreeNodeValueTheme
- $AnsiTreeViewThemeExtension on AnsiTreeViewTheme
- $AnsiXException on AnsiXException
- $WrapOptionsExtension on WrapOptions
- AnsiString on String
- AnsiXShortcuts on String
- NullableStringX on String?
- StringBufferX on StringBuffer
- StringX on String
Properties
- isDebugMode → bool
-
Returns true when running on Debug mode.
no setter
Functions
-
alignCenter(
int textLength, int width) → (int, int) -
buildExceptionMessage(
AnsiXException exception) → String -
handleException(
AnsiXException exception) → void - This method is used to handle AnsiXExceptions that are thrown while using AnsiX.
-
testPrintOutput(
Function callback) → String - Used for testing the output of a callback that's printed in the console.
Exceptions / Errors
- AnsiNotSupported
- AnsiXException
- Base class for AnsiX exceptions
- WindowsLegacyModeError