method property

Method? method

Retrieves the method by which answers are expected

Implementation

Method? get method =>
    getProperty<MethodProperty>(MethodProperty.propertyName)?.method;
void method=(Method? value)

Sets the method to the given value

Implementation

set method(Method? value) => setOrRemoveProperty(
    MethodProperty.propertyName, MethodProperty.create(value));