Skip to main content

Border Side

StacBorderSide allows you to define the Flutter BorderSide class using JSON. To know more about the BorderSide class in Flutter, refer to the official documentation.

Properties​

PropertyTypeDescription
colorColor?Defines color of the border.
widthdouble?Defines thickness of the border. (logical px).
styleBorderStyle?Defines the style of the border. Can be solid or none. Defaults to solid.
strokeAligndouble?Defines the relative position of the stroke on values range from -1.0 (inside) to 1.0 (outside).

Example​

{
"color": "#428AF5",
"width": 1.0,
"style":"solid",
"strokeAlign": 1.0,
}