validate property

String? get validate

What to do with a block that fails to compile or validate. 'warn' (default) logs a warning and drops the block, keeping the rest of the turn alive; 'strict' throws (best during development); 'off' skips the renderer-side checks (dangling references, missing root) and drops a block that does not compile without logging a warning.

Implementation

String? get validate {
  return _json['validate'] as String?;
}
set validate (String? value)

What to do with a block that fails to compile or validate. 'warn' (default) logs a warning and drops the block, keeping the rest of the turn alive; 'strict' throws (best during development); 'off' skips the renderer-side checks (dangling references, missing root) and drops a block that does not compile without logging a warning.

Implementation

set validate(String? value) {
  if (value == null) {
    _json.remove('validate');
  } else {
    _json['validate'] = value;
  }
}