title

fun MaterialDialogScope.title(    text: String? = null,     @StringRes res: Int? = null,     color: Color = MaterialTheme.colors.onSurface,     style: TextStyle = MaterialTheme.typography.h6,     center: Boolean = false)

Adds a title with the given text to the dialog

Parameters

text

title text from a string literal

res

title text from a string resource

center

text is aligned to center when true