import 'package:flutter/material.dart';

class Friend {
  String id;
  String userName;
  String email;
  String photoURL;
  String photoLocal;

  Friend({@required this.id, @required this.userName, @required this.email});

  @override
  String toString() {
    return " Arkadaşın id: ${this.id} ve kullanıcı adı: ${this.userName}";
  }
}

void main() {
  runApp(
    MaterialApp(
      home: MyWidget(),
    ),
  );
}

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    Friend mert = Friend(email: "admin@droidim.com",id: "0",userName : "Mert");
    return Scaffold(
      body: Center(
        child: Text(
          mert.toString(),
          style: Theme.of(context).textTheme.headline4,
        ),
      ),
    );
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.