enableHotReload function
Implementation
Future<HotReloader?> enableHotReload() async {
if ((await Service.getInfo()).serverUri == null) {
print('ℹ️ Hot reload is not enabled, run with VM option '
'--enable-vm-service to enable');
return null;
} else {
print('🔥 Hot reload is enabled, application will reload automatically '
'after sources have been changed');
}
return await HotReloader.create();
}