withFunctionOverride

fun <T : Function<*>> withFunctionOverride(base: T, override: FunctionOverride<T>?): T

Applies a function override, mirroring the Flutter helper behavior.