nullable<T> static method
Generic
Returns Null or value
based on nullChance
Implementation
/// Returns [Null] or [value] based on [nullChance]
static T? nullable<T>(T value, [double nullChance = 50]) {
return boolean(nullChance) ? null : value;
}