CkShare class

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

byteContent({required String title, required ByteData imageUrl, required String deepLinkUrl}) → Future<void>
content({required String title, required String imageUrl, required String deepLinkUrl}) → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

instance → CkShare
final

Static Methods

builder({Key? key, required String title, required String deepLinkUrl, String? imageUrl, ByteData? byteImage, required Widget builder(BuildContext context, Future<void> share(), bool isLoading), VoidCallback? onShareStart, VoidCallback? onShareSuccess, void onShareError(Object error)?}) → Widget
Creates a CkShareButton using a builder callback for full custom control.
button({Key? key, required String title, required String deepLinkUrl, String? imageUrl, ByteData? byteImage, required Widget child, CkShareLoaderStyle loaderStyle = CkShareLoaderStyle.adaptiveEdge, BoxShape? shape, BorderRadius? borderRadius, double strokeWidth = 2.5, double strokeLengthFactor = 0.3, Color? loaderColor, Color? trackColor, double paddingOffset = 0.0, Duration animationDuration = const Duration(milliseconds: 1100), Widget? customLoader, VoidCallback? onTap, VoidCallback? onShareStart, VoidCallback? onShareSuccess, void onShareError(Object error)?}) → Widget
Creates a CkShareButton wrapping a child with an adaptive edge-tracing loader.
resolveImageUrl(String imageUrl) → String
Resolves an image URL or path into a full valid URI string.