instance static method

Vasat instance([
  1. String name = defaultName
])

Additional method that does the same as the factory constructor. Just here for making it more natural to get instances of Vasat

Implementation

static Vasat instance([String name = defaultName]) {
  // Return cached vasat for given name. If not found in cache return a new empty Vasat instace
  return _cache[name] ?? Vasat(config: VasatConfig(clientId: '', host: ''), storageProvider: VasatSharedPreferencesProvider());
}