allow readonly to be a function
Merge pull request #52 from quarterto/feature/dynamic-readonly

Dynamic readonly