Scandit Icon Builder
Defined in library scandit_datacapture_core_ui
- ScanditIconBuilder
class ScanditIconBuilder
Added in version 7.1.0
Use this object to construct instances of ScanditIcon.
- withIcon(iconType)
ScanditIconBuilder withIcon(ScanditIconType? iconType)
Added in version 7.1.0
Sets the icon.
- withIconColor(iconColor)
ScanditIconBuilder withIconColor(Color? iconColor)
Added in version 7.1.0
Sets the color of the icon.
- withBackgroundColor(backgroundColor)
ScanditIconBuilder withBackgroundColor(Color? backgroundColor)
Added in version 7.1.0
Sets the color applied to the icon’s background.
- withBackgroundStrokeColor(backgroundStrokeColor)
ScanditIconBuilder withBackgroundStrokeColor( Color? backgroundStrokeColor)
Added in version 7.1.0
Sets the color of the stroke applied to the icon’s background.
- withBackgroundStrokeWidth(backgroundStrokeWidth)
ScanditIconBuilder withBackgroundStrokeWidth( double backgroundStrokeWidth)
Added in version 7.1.0
Sets the width of the stroke applied to the icon’s background.
- withBackgroundShape(backgroundShape)
ScanditIconBuilder withBackgroundShape(ScanditIconShape? backgroundShape)
Added in version 7.1.0
Sets the icon’s background shape.
- build()
ScanditIcon build()
Added in version 7.1.0
Constructs a ScanditIcon with the properties set on the builder.