MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / isEmpty

Method isEmpty

packages/core/ui/styling/background-common.ts:212–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210 }
211
212 public isEmpty(): boolean {
213 return !this.color && !this.image && !this.hasBorderWidth() && !this.hasBorderRadius() && !this.clipPath;
214 }
215
216 public static equals(value1: Background, value2: Background): boolean {
217 // both values are falsy

Callers 12

toStringMethod · 0.95
_applyBackgroundMethod · 0.80
getColumnSpecMethod · 0.80
getRowSpecMethod · 0.80
getColumnSpanMethod · 0.80
getRowSpanMethod · 0.80
setupItemMethod · 0.80
setupItemMethod · 0.80
setupItemMethod · 0.80
drawMethod · 0.80
getDrawParamsMethod · 0.80

Calls 2

hasBorderWidthMethod · 0.95
hasBorderRadiusMethod · 0.95

Tested by

no test coverage detected