listIf<T> static method
Implementation
static List<T> listIf<T>(bool condition, ListFactory<T> factory) =>
condition ? factory() : [];
static List<T> listIf<T>(bool condition, ListFactory<T> factory) =>
condition ? factory() : [];