# alert method

void alert (BuildContext context, String title, String message, [ Function callback ])

## Implementation

    static void alert(BuildContext context, String title, String message, [Function callback]) {
      showDialog(
        context: context,
        barrierDismissible: false,
        builder: (BuildContext context) {
          return AlertDialog(
            title: Text(title),
            content: Text(message),
            actions: <Widget>[
              FlatButton(
                child: new Text("Ok"),
                onPressed: () {
                  if (callback != null) {
                    callback(true);
                  }
                  Navigator.of(context).pop();
                },
              ),
            ],
          );
        },
      );
    }