@NonNull

@Override

public

View

getView

()

return

textView

@Override

public

void

dispose

()

{}

Create a factory class that creates an
instance of the NativeView created earlier
(for example, NativeViewFactory.java):

package

dev.flutter.example

import

android.content.Context

import

androidx.annotation.Nullable

import

androidx.annotation.NonNull

import

io.flutter.plugin.common.StandardMessageCodec

import

io.flutter.plugin.platform.PlatformView

import