create static method
- @Deprecated('since 300.2.0; Use [DiscreteFieldSupplier](DiscreteField) instead.')
- DiscreteField result
Creates a DiscreteFieldFunction with a predefined result.
Enables a DiscreteField to be used in contexts that expect a DiscreteFieldFunction by setting the result of the function explicitly.
Call DiscreteFieldFunction.evaluate to return the given result.
Parameters:
result— The predefined function result.
Return Value: A DiscreteFieldFunction with a predefined result.