ChromeInfobars class
class ChromeInfobars extends ChromeApi {
 static final JsObject _infobars = chrome['infobars'];
 ChromeInfobars._();
 bool get available => _infobars != null;
 /**
  * Shows an infobar in the specified tab. The infobar will be closed
  * automatically when the tab navigates. Use window.close() to close the
  * infobar before then.
  * 
  * Returns:
  * Contains details about the window in which the infobar was created.
  */
 Future<Window> show(InfobarsShowParams details) {
   if (_infobars == null) _throwNotAvailable();
   var completer = new ChromeCompleter<Window>.oneArg(_createWindow);
   _infobars.callMethod('show', [jsify(details), completer.callback]);
   return completer.future;
 }
 void _throwNotAvailable() {
   throw new UnsupportedError("'chrome.infobars' is not available");
 }
}
Extends
ChromeApi > ChromeInfobars
Properties
final bool available #
Returns true if the API is available. The common causes of an API not being avilable are:
- a permission is missing in the application's manifest.json file
 - the API is defined on a newer version of Chrome then the current runtime
 
docs inherited from ChromeApi 
bool get available => _infobars != null;
Methods
Future<Window> show(InfobarsShowParams details) #
Shows an infobar in the specified tab. The infobar will be closed automatically when the tab navigates. Use window.close() to close the infobar before then.
Returns: Contains details about the window in which the infobar was created.
Future<Window> show(InfobarsShowParams details) {
 if (_infobars == null) _throwNotAvailable();
 var completer = new ChromeCompleter<Window>.oneArg(_createWindow);
 _infobars.callMethod('show', [jsify(details), completer.callback]);
 return completer.future;
}