setLeadingNavButtonIcon method
Sets the icon of the leading navigation button.
await controller.setLeadingNavButtonIcon(Platform.isIOS ? 'ic_close_black_24px.png' : 'ic_arrow_back_white_24dp');
path
specifies the file name of the image resource. The button will use
the specified icon if Config.showLeadingNavButton, which is true by
default, is true in the config. To add an image file to your application,
please follow the steps in the wiki page.
Implementation
Future<void> setLeadingNavButtonIcon(String path) {
return _channel.invokeMethod(Functions.setLeadingNavButtonIcon,
<String, dynamic>{Parameters.leadingNavButtonIcon: path});
}