updateBottomIcon method

Future<void> updateBottomIcon(
  1. String assetImage
)

Updates bubble bottomIcon with String asset image

Implementation

Future<void> updateBottomIcon(String assetImage) async {
  if (_isOpen) {
    var bytes = (await rootBundle.load(assetImage)).buffer.asUint8List();
    _platform.invokeMethod('updateBubbleBottomIcon', bytes);
  } else
    throw Exception('Bubble not running');
}