builder static method

Widget builder({
  1. Key? key,
  2. required String title,
  3. required String deepLinkUrl,
  4. String? imageUrl,
  5. ByteData? byteImage,
  6. required Widget builder(
    1. BuildContext context,
    2. Future<void> share(),
    3. bool isLoading
    ),
  7. VoidCallback? onShareStart,
  8. VoidCallback? onShareReady,
  9. VoidCallback? onShareSuccess,
  10. void onShareError(
    1. Object error
    )?,
})

Creates a CkShareButton using a builder callback for full custom control.

Implementation

static Widget builder({
  Key? key,
  required String title,
  required String deepLinkUrl,
  String? imageUrl,
  ByteData? byteImage,
  required Widget Function(
    BuildContext context,
    Future<void> Function() share,
    bool isLoading,
  )
  builder,
  VoidCallback? onShareStart,
  VoidCallback? onShareReady,
  VoidCallback? onShareSuccess,
  void Function(Object error)? onShareError,
}) => CkShareButton.builder(
  key: key,
  title: title,
  deepLinkUrl: deepLinkUrl,
  imageUrl: imageUrl,
  byteImage: byteImage,
  builder: builder,
  onShareStart: onShareStart,
  onShareReady: onShareReady,
  onShareSuccess: onShareSuccess,
  onShareError: onShareError,
);