You can ignore analyzer error this time. It seems like a bug/issue with current Dart version.
The error "cannot find extension library...
means that Dart VM can not find the "sample_extension.dll" file inside your project folder. You must compile the C++ source code of the sample by yourself to generate the library (dll under Windows).
The article about native extensions has a section called Building on Windows. Just follow the instructions.