Helper.kt->
class Helper(context: Context) : SQLiteOpenHelper(context, DBNAME, null, DBVERSION) {
companion object {
private val DBNAME = "myDb"
private val DBVERSION = 1
}
-->this class will take context argument but in fragment it is showing error for "context","activity","this".. i have tried all the things but not be able to resolve the error
HomeFragment.kt->
class HomeFragment : Fragment() {
companion object {
const val KEY = "data"
}
val helper = Helper(context) //getting error-> Required:Context , Found:Context?