true; } null.isEmpty; // => true final user = {'name': 'makicamel'}; user['someList'].isEmpty; // Unhandled exception: // NoSuchMethodError: // The getter 'isEmpty' was called on null.
null , it is a run-time error if a migrated extension with a non-nullable on type is called on null %BSU4UBUJD&YUFOTJPO.FUIPET%FTJHOEBSUMBOHMBOHVBHFc(JU)VC IUUQTHJUIVCDPNEBSUMBOHMBOHVBHFCMPCFEDDCEBD⒎DD BDDFQUFEGVUVSFSFMFBTFTTUBUJDFYUFOTJPONFUIPETGFBUVSFTQFDJpDBUJPONE ैདྷͷnullableͳܕʹnullؚ͕·ΕΔ߹ɺ nullෆՄͷܕͷExtension͕nullͰݺΕΔͱ ࣮ߦ࣌ΤϥʔʹͳΓ·͢ &YUFOEͰ͖ͳ͍
} extension ListNum<num> on List<int> { void best() => print('bestNum'); } // => Error: The method 'best' isn't defined // for the class 'List<int>'. ৄࡉ͕ಉ͡Extension͕ఆٛ͞Ε͍ͯΔͱ ίϯύΠϧΤϥʔʹͳΔ