setCloseBackgroundIcon method

Future<String> setCloseBackgroundIcon(
  1. String assetPath
)

Set a custom Close Background to be displayed behind the Close Icon.

Implementation

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