withValue

fun withValue(value: Double): Goal

Create a goal with the given value.