Add constructor fromPtr() for all flutter class with factory ctor. (#1667)

Co-authored-by: wangrui <wangrui@oecore.com>
This commit is contained in:
w-rui
2024-12-31 18:07:52 +08:00
committed by GitHub
parent ebe92e523d
commit 0a43e9c879
9 changed files with 23 additions and 0 deletions

View File

@@ -53,6 +53,8 @@ class KeywordResult {
}
class KeywordSpotter {
KeywordSpotter.fromPtr({required this.ptr, required this.config});
KeywordSpotter._({required this.ptr, required this.config});
/// The user is responsible to call the OnlineRecognizer.free()