setIcon method
Set a custom icon
for the chathead.
Implementation
Future<String> setIcon(String assetPath) async {
final int result =
await (_platform.invokeMethod('setIcon', assetPath) as FutureOr<int>);
return result > 0 ? "Icon set" : "There was an error.";
}