setIcon method

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

Implementation

Future<void> setIcon(File icon, {String? reason}) async {
  final iconAsset = ImageAsset.makeAsset(icon);
  await _serverPart.updateServer(
      serverId, {'icon': iconAsset.makeUrl()}, reason);
}