when change status of widget like switch off or switch on onChange will call and passed new value
final Function(bool value)? onChange;