Document constructor
Document({
- required String blockId,
- required SerializerStrategy serializer,
- required WsChannel ws,
- CryptoStrategy? crypto,
- CacheStrategy? cache,
- SecretKey? secretKey,
- SmartCache? smartCache,
- bool local = false,
- void onMutate()?,
- Future<
void> onSet()?,
Implementation
Document({
required String blockId,
required SerializerStrategy serializer,
required WsChannel ws,
CryptoStrategy? crypto,
CacheStrategy? cache,
SecretKey? secretKey,
SmartCache? smartCache,
bool local = false,
void Function()? onMutate,
Future<void> Function(Map<String, dynamic>)? onSet,
}) : _blockId = blockId,
_serializer = serializer,
_ws = ws,
_crypto = crypto,
_cache = cache,
_secretKey = secretKey,
_smartCache = smartCache,
_local = local,
_onMutate = onMutate,
_onSet = onSet;