updateTopIcon method

Future<void> updateTopIcon(
  1. String assetImage
)

Updates bubble topIcon with String asset image

Implementation

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