info method

AppInfo? info(
  1. String host
)

Returns the application information by host name.

Returns null if host cannot be matched to an entry in apps.

final AppInfo? info = StoreInfo.info('phantom.app');

Implementation

AppInfo? info(final String host) {
  for (final AppInfo info in apps) {
    if (info.host == host) {
      return info;
    }
  }
  return null;
}