createCoreControl method

Widget createCoreControl()

Implementation

Widget createCoreControl() {
  return Container(
    margin: widget.margin,
    width: widget.width,
    height: widget.height,
    decoration: ShapeDecoration(
      color: (currentGradient != null) ? null : currentColor,
      gradient: currentGradient ?? defaultGradient,
      shape: _createShapeBorder(controlState!, false),
      shadows: _createDropShadowList(
          controlState!, widget.dropShadow, supportDropShadow),
    ),
    foregroundDecoration: ShapeDecoration(
      shape: _createShapeBorder(controlState!, false),
    ),
    child: _createChildContainer(
        controlState!, widget.lightOrientation, widget.innerShadow),
  );
}