I send a boolean variable to SQL database, But when i retrieve it it was a string.
The Entered Data Code Is:
database.execute(
"CREATE TABLE tasks (id integer PRIMARY KEY ,isFinished BOOLEAN) ");
When i retrieve the data the run time type is String!
the code is:
Future<bool> checkBoxValue({required int id})async{
Database? _database = await _createDB();
List<Map<String, Object?>> isFinished= await _database.rawQuery("SELECT isFinished from tasks where id = '$id'");
Object? c= isFinished[0]['isFinished'] ;
print("\n isFinished:${c.runtimeType} \n");
return true;
}