setBackground method

  1. @override
Future<void> setBackground(
  1. Uint8List? bytes
)
override

Sets the background value.

Implementation

@override
Future<void> setBackground(Uint8List? bytes) async {
  Log.debug('setBackground(${bytes?.length})', '$runtimeType');

  bytes == null
      ? await _backgroundLocal.delete(userId)
      : await _backgroundLocal.upsert(userId, DtoBackground(bytes));
}