agent-workspace / flutter /packages /flutter_tools /templates /plugin /windows.tmpl /pluginClassSnakeCase.h.tmpl
agent-workspace / flutter /packages /flutter_tools /templates /plugin /windows.tmpl /pluginClassSnakeCase.h.tmpl
Download flutter/packages/flutter_tools/templates/plugin/windows.tmpl/pluginClassSnakeCase.h.tmpl from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 933 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/packages/flutter_tools/templates/plugin/windows.tmpl/pluginClassSnakeCase.h.tmpl
- Command line
-
hf download hf://luom2645/agent-workspace@7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/packages/flutter_tools/templates/plugin/windows.tmpl/pluginClassSnakeCase.h.tmpl
-
curl -L -o pluginClassSnakeCase.h.tmpl https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/packages/flutter_tools/templates/plugin/windows.tmpl/pluginClassSnakeCase.h.tmpl
933 Bytes
| namespace {{projectName}} { | |
| class {{pluginClass}} : public flutter::Plugin { | |
| public: | |
| static void RegisterWithRegistrar(flutter::PluginRegistrarWindows *registrar); | |
| {{pluginClass}}(); | |
| virtual ~{{pluginClass}}(); | |
| // Disallow copy and assign. | |
| {{pluginClass}}(const {{pluginClass}}&) = delete; | |
| {{pluginClass}}& operator=(const {{pluginClass}}&) = delete; | |
| // Called when a method is called on this plugin's channel from Dart. | |
| void HandleMethodCall( | |
| const flutter::MethodCall<flutter::EncodableValue> &method_call, | |
| std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result); | |
| }; | |
| } // namespace {{projectName}} | |