/// The title displayed to the user
final String title;
/// The message displayed to the user.
final String message;
/// Replaces [title]. Although this accepts a [Widget], it is meant to receive [Text] or [RichText]
final Widget titleText;
/// Replaces [message]. Although this accepts a [Widget], it is meant to receive [Text] or [RichText]
final Widget messageText;
If this were to be consistent with Flutter naming schemes, we'd swap the names.
title should be a Widget, and titleText should be a String. Take InputDecoration for example.
If this were to be consistent with Flutter naming schemes, we'd swap the names. title should be a
Widget
, andtitleText
should be aString
. TakeInputDecoration
for example.