isPresent function
- dynamic input
Decides if an attribute is present or missing
Example:
@Component(
host: const { 'attr.someInput
': 'someInput' }
)
class SomeComponent{
@Input('attr.someInput
')
var someInput;
bool get isSomeInput => isPresent(someInput);
}
Implementation
bool isPresent(dynamic input) => input != null;