setCloseIcon method

Future<String> setCloseIcon(
  1. String assetPath
)

Set a custom Close Icon to be displayed when the chathead is dragged.

Implementation

Future<String> setCloseIcon(String assetPath) async {
  final int result = await (_platform.invokeMethod('setCloseIcon', assetPath)
      as FutureOr<int>);
  return result > 0 ? "Close Icon set" : "There was an error.";
}