ButtonTheme.fromButtonThemeData constructor

const ButtonTheme.fromButtonThemeData({Key key, @required ButtonThemeData data, Widget child })

Creates a button theme from data.

The data argument must not be null.

Implementation

const ButtonTheme.fromButtonThemeData({
  Key key,
  @required this.data,
  Widget child,
}) : assert(data != null),
     super(key: key, child: child);