Add constructor fromPtr() for all flutter class with factory ctor. (#1667)
Co-authored-by: wangrui <wangrui@oecore.com>
This commit is contained in:
@@ -162,6 +162,8 @@ class OnlineRecognizerResult {
|
||||
}
|
||||
|
||||
class OnlineRecognizer {
|
||||
OnlineRecognizer.fromPtr({required this.ptr, required this.config});
|
||||
|
||||
OnlineRecognizer._({required this.ptr, required this.config});
|
||||
|
||||
/// The user is responsible to call the OnlineRecognizer.free()
|
||||
|
||||
Reference in New Issue
Block a user