public final <E extends Effect> CssMetaData<S, E> createEffectCssMetaData (String property, Function<S, StyleableProperty<E>> function)

Create a CssMetaData<S, Effect> with initial value of null, and inherit flag defaulting to false.

Parameters:
property    The CSS property name.
function    A function that returns the StyleableProperty<Effect> that corresponds to this CssMetaData.

Exceptions:
java.lang.IllegalArgumentException    if property is null or an empty string, or function is null.