setDiscoverySplash method

Future<void> setDiscoverySplash(
  1. File discoverySplash, {
  2. String? reason,
})

Implementation

Future<void> setDiscoverySplash(File discoverySplash,
    {String? reason}) async {
  final discoverySplashAsset = ImageAsset.makeAsset(discoverySplash);
  await _serverPart.updateServer(
      serverId, {'discovery_splash': discoverySplashAsset.makeUrl()}, reason);
}