data method

dynamic data({
  1. String? key,
})

Get data from the NyStatefulWidget controller.

Implementation

dynamic data({String? key}) {
  if (widget is NyStatefulWidget) {
    return (widget as NyStatefulWidget).controller.data(key: key);
  }
  return null;
}