Created
October 12, 2020 09:40
-
-
Save apgapg/fc7314ef4d2072f8c3df28a0d48b398d to your computer and use it in GitHub Desktop.
Call notifyListeners which otherwise is protected in ValueNotifier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class PropertyValueNotifier<T> extends ValueNotifier<T> { | |
PropertyValueNotifier(T value) : super(value); | |
@override | |
void notifyListeners() { | |
super.notifyListeners(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment