Latest source merged from Syncfusion

This commit is contained in:
pipeline 2021-06-22 06:23:28 +05:30
Родитель 27be1ec08d
Коммит 3804c3dfcb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -145,7 +145,7 @@ Widget build(BuildContext context) {
If row is added, removed or replaced in an underlying datasource, you can call the [notifyListeners](https://api.flutter.dev/flutter/foundation/ChangeNotifier/notifyListeners.html).
In the following example, row is added and `notifyListeners` is called in `onPressed` callback of the `TextButton`.
In the following example, row is added and `notifyListeners` is called in `onPressed` callback of the `TextButton`. As the `notifyListeners` is the protected method, we have introduced the `updateDataGridSource` method in EmployeeDataSource class and called the `notifyListeners` method. So, users can call `updateDataGridSource` methods in widget level to refresh the datagrid.
N> `notifyListeners` should be called from inside the `DataGridSource`.