readonly method

void readonly([
  1. String expression = 'true()'
])

Sets the readonly expression (default true()).

Implementation

void readonly([String expression = 'true()']) =>
    attributes['readonly'] = expression;