setSplash method
Set the server's splash.
await server.assets.setSplash(File('splash.png'), reason: 'Testing');
Implementation
Future<void> setSplash(File splash, {String? reason}) async {
final splashAsset = ImageAsset.makeAsset(splash);
await _serverPart.updateServer(
serverId, {'splash': splashAsset.makeUrl()}, reason);
}