ObjectExt extension

on

Properties

isNotNull bool

Available on Object?, provided by the ObjectExt extension

isNotNull: Checks if the object is not null.
no setter
isNotNullOrFalse bool

Available on Object?, provided by the ObjectExt extension

isNotNullOrFalse: Checks if the object is not null and false.
no setter
isNotNullOrNegative bool

Available on Object?, provided by the ObjectExt extension

isNotNullOrNegative: Checks if the object is not null and negative.
no setter
isNotNullOrPositive bool

Available on Object?, provided by the ObjectExt extension

isNotNullOrPositive: Checks if the object is not null and positive.
no setter
isNotNullOrTrue bool

Available on Object?, provided by the ObjectExt extension

isNotNullOrTrue: Checks if the object is not null and true.
no setter
isNotNullOrZero bool

Available on Object?, provided by the ObjectExt extension

isNotNullOrZero: Checks if the object is not null and zero.
no setter
isNotNullOrZeroOrNegative bool

Available on Object?, provided by the ObjectExt extension

isNotNullOrZeroOrNegative: Checks if the object is not null, not zero and not negative.
no setter
isNull bool

Available on Object?, provided by the ObjectExt extension

isNull: Checks if the object is null.
no setter
isNullOrFalse bool

Available on Object?, provided by the ObjectExt extension

isNullOrFalse: Checks if the object is null or false.
no setter
isNullOrNegative bool

Available on Object?, provided by the ObjectExt extension

isNullOrNegative: Checks if the object is null or negative.
no setter
isNullOrPositive bool

Available on Object?, provided by the ObjectExt extension

isNullOrPositive: Checks if the object is null or positive.
no setter
isNullOrTrue bool

Available on Object?, provided by the ObjectExt extension

isNullOrTrue: Checks if the object is null or true.
no setter
isNullOrZero bool

Available on Object?, provided by the ObjectExt extension

isNullOrZero: Checks if the object is null or zero.
no setter
isNullOrZeroOrNegative bool

Available on Object?, provided by the ObjectExt extension

isNullOrZeroOrNegative: Checks if the object is null, zero or negative.
no setter
log → void

Available on Object?, provided by the ObjectExt extension

log: Logs the object.
no setter

Methods

asOrNull<T>() → T?

Available on Object?, provided by the ObjectExt extension

asOrNull: Attempts to cast the object to a specified type, returning null if the cast fails.
instanceOf(Type type) bool

Available on Object?, provided by the ObjectExt extension

instanceOfAny(List<Type> types) bool

Available on Object?, provided by the ObjectExt extension

instanceOfAny: Check if any of the types given are of the same (runtimeType) type as this
isNotOfType(Type type) bool

Available on Object?, provided by the ObjectExt extension

isNotOfType: Checks if the object is not of the specified (runtimeType) type.
isNotOfTypeAny(List<Type> types) bool

Available on Object?, provided by the ObjectExt extension

isNotOfTypeAny: Checks if the object is not of any of the specified (runtimeType) types.
isOfType(Type type) bool

Available on Object?, provided by the ObjectExt extension

isOfType: Checks if the object is of the specified (runtimeType) type.
isOfTypeAny(List<Type> types) bool

Available on Object?, provided by the ObjectExt extension

isOfTypeAny: Checks if the object is of any of the specified (runtimeType) types.
logIf(bool condition) → void

Available on Object?, provided by the ObjectExt extension

logIf: Logs the object if the condition is true.