This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
String? nullableButHasValue = 'hello'; | |
String? nullableAndIsNull; | |
func1(password: nullableButHasValue); //<-- Works, because the check registers, that is has a value | |
//func1(password: nullableAndIsNull); //<-- Errors, bc param is non-nullable and has no value. | |
//func1(param: null); //<-- Errors, bc param is non-nullable | |
func2(); // Works as expected | |
func2(password: null); // password is set to null, instead of 'test-nullable' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Sensor Light | |
description: > | |
# 💡 Sensor Light | |
**Version: 5.1.1** | |
The most common automation used for a sensor light. | |