Have a LWRP property refer to another property in the definition?

Can I do something like this in the resource file of my LWRP:

attribute :default_prop, kind_of: String
attribute :opional_prop,
kind_of: String,
default: default_prop

The idea is I want the property to default to the vaule of another property if it isn’t explicity passed to the resource.

Do I have to handle this programatically in the provider file?