Sha256: 0118491e33b99e474965c69b5255abc8373e7e15a13ede8b93f56a177f11c66b
Contents?: true
Size: 481 Bytes
Versions: 74
Compression:
Stored size: 481 Bytes
Contents
## Tip A function with a *return type* can only return data of that *type* and `null`. However the function caller is only expecting one data type. Example: ```dart String hello(int a){ if ( a == 0){ return "a"; } else { return null; } } ``` To make it more clear that this function can also return `null` or more data types, use `dynamic`. ```dart dynamic hello(int a){ if ( a == 0){ return "a"; } else { return null; } }
Version data entries
74 entries across 74 versions & 1 rubygems