title: The instance member 'mail' can't be accessed in an initializer
body: <p>I was trying to use the indexOf method in Dart and this error occurs. I have simply used two strings and thats it.</p>
  <p><img src="https://i.stack.imgur.com/a4u8Y.png" alt="Screen Shot of the issue" /></p>