CkShareButton.builder constructor
const
CkShareButton.builder({})
Convenient constructor for builder mode.
Implementation
const CkShareButton.builder({
super.key,
required this.title,
required this.deepLinkUrl,
required this.builder,
this.imageUrl,
this.byteImage,
this.onShareStart,
this.onShareSuccess,
this.onShareError,
}) : child = null,
loaderStyle = CkShareLoaderStyle.adaptiveEdge,
shape = null,
borderRadius = null,
strokeWidth = 2.5,
strokeLengthFactor = 0.3,
loaderColor = null,
trackColor = null,
paddingOffset = 0.0,
animationDuration = const Duration(milliseconds: 1100),
customLoader = null,
onTap = null,
assert(
imageUrl != null || byteImage != null,
'Either imageUrl or byteImage must be provided to CkShareButton.',
);